I am trying to force my emails to put data on seperate lines to make it look cleaner in the actual email.

My TextBody code currently consists of the following:

objMail.TextBody = Request.Form("emailText") & " Contact Phone Number: (" & Request.Form("phoneArea") & ")" & Request.Form("phoneNumber") & " Best Contact Time" & Request.Form("contactTime")

Thanks in advance for any help.

Recommended Answers

All 2 Replies

try 'vbcrlf'...

objMail.TextBody = Request.Form("emailText") & vbcrlf & " Contact Phone Number: (" & Request.Form("phoneArea") & ")" & Request.Form("phoneNumber") & vbcrlf & " Best Contact Time" & Request.Form("contactTime")

if you are sending the email as html you can use standard html paragraph mark <p>

objMail.TextBody = Request.Form("emailText") & "<p> Contact Phone Number: (" & Request.Form("phoneArea")...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.