Solved

asp.net vb email carriage returns

Posted on 2014-10-24
2
115 Views
Last Modified: 2014-10-24
Email body carriage returns not working.  What am I doing wrong?

   message.Body = "Name:  " + txtName + vbCrLf + vbCrLf _
                + "Site #:  " + txtSite + vbCrLf + vbCrLf _
                + "Expertise: " + txtExpertise + vbCrLf + vbCrLf _
                + "Interests: " + txtInterests + vbCrLf + txtPC + vbCrLf + vbCrLf _
                + "Comments:  " + txtComments + vbCrLf + vbCrLf
  message.IsBodyHtml = True
0
Comment
Question by:ClubGen
2 Comments
 
LVL 35

Accepted Solution

by:
Robert Schutt earned 500 total points
ID: 40402720
Since you're setting the body type to HTML, you need to replace vbCrLf with "<br>" which represents a line break in HTML.
0
 

Author Closing Comment

by:ClubGen
ID: 40402825
Thanks
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VBA for Outlook Web App 5 327
Steps to architect a software solution 4 66
PHP Session ID 5 93
Using YubiKey with REST API application 2 108
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Introduction A frequently used term in Object-Oriented design is "SOLID" which is a mnemonic acronym that covers five principles of OO design.  These principles do not stand alone; there is interplay among them.  And they are not laws, merely princ…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now