Solved

asp.net vb email carriage returns

Posted on 2014-10-24
2
125 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Foreword (May 2015) This web page has appeared at Google.  It's definitely worth considering! https://www.google.com/about/careers/students/guide-to-technical-development.html How to Know You are Making a Difference at EE In August, 2013, one …
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…
Wufoo.com provides powerful tools for surveying targeted groups, and utilizing data from completed surveys to find trends, discover areas of demand or customer expectation, and make business decisions on products or services.
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.

728 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