Click to See Complete Forum and Search --> : help with carriage return


geoff2005
07-17-2005, 05:36 AM
hi guys!

am trying to make a carriage return of the following:
Mailer.BodyText = "From: " & Request.Form("FROM") & VbCrLf & VbCrLf & "Message: " & Request.Form("MESSAGE")
but it doesnt work.

when i received the email on my mailbox, the format is all in one line, like this:

From: Anyone Message: Test message only

but i would like the "Message:" to appear in the second line.

anyhelp would be appeciated. thanks!

buntine
07-17-2005, 05:39 AM
Are you sending the mail in HTML format? If so, use a <br /> for a line break.

Mailer.BodyText = "From: " & Request.Form("FROM") & "<br /><br />" & "Message: " & Request.Form("MESSAGE")

Regards.

geoff2005
07-17-2005, 08:33 AM
yes buntine, im sending it in HTML format... but, thank for your code, it works!:)

buntine
07-17-2005, 01:17 PM
No worries. Just for clarification; line breaks are never treated literally in an HTML document. ;)