Solved

asp.net vb email carriage returns

Posted on 2014-10-24
2
124 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Redirect website ! 4 55
How to include jquery as a global using webpack 1 251
Unwanted Popup 8 274
Magento: different theme for Pc and for mobile devices 4 117
Introduction (All good things must come to an end (http://en.wikipedia.org/wiki/All_Good_Things...))The original MySQL API (http://php.net/manual/en/book.mysql.php) has gone away, deprecated by PHP in Version 5.5, and removed from PHP in all current…
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 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.

734 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