Solved

asp.net vb email carriage returns

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Foolproof security solutions has become one of the key necessities of every e-commerce or Internet banking website. If you too own an online shopping site then its vital for you to equip your web portal with customer security features that can allow…
What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
This video teaches users how to migrate an existing Wordpress website to a new domain.
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.

760 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

19 Experts available now in Live!

Get 1:1 Help Now