473,382 Members | 1,252 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

MailMessage - inserting new line character

What is the best character for inserting new line and which is accepted by
most of the email clients.

Right now I have \n
mailMessage.Body = "Line 1 \n Line 2 \n Line 3";
This works good for yahoo. etc
but is giving problem for our Lotus Notes

If I give \r
Lotus notes seems to take it but yahoo does not like it.
Jul 21 '05 #1
1 2309
try Environment.NewLine

"helpSeekar" wrote:
What is the best character for inserting new line and which is accepted by
most of the email clients.

Right now I have \n
mailMessage.Body = "Line 1 \n Line 2 \n Line 3";
This works good for yahoo. etc
but is giving problem for our Lotus Notes

If I give \r
Lotus notes seems to take it but yahoo does not like it.

Jul 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Bizzo | last post by:
What character must I use to add line break in a MailMessage (BodyEncoding = Encoding.ASCII)? I tried '\n', '\r', "\r\n", "\n\r" and Environment.NewLine... None works! :-( Suggestions? Bizzo
14
by: Miranda | last post by:
Hi, I have a ASP/vbscript program that generates random passwords. The problem is I need to insert those passwords into an Access database of 327 clients. I have the random password program...
0
by: Toby Mathews | last post by:
Hi there, I am sending an HtmlFormat email using MailMessage from my code. In between me assigning the body text and the message being sent something is inserting random exclamation marks in my...
2
by: Sam | last post by:
Hi, I have a file in which I want to insert a text in between say the a specific line. Basically, I want to read through the file and search for a particular line or character and then once I...
4
by: Aren Cambre | last post by:
Why does SmtpMail.Send throw an exception if the MailMessage's BodyFormat = MailFormat.Html? I've searched all over the place and cannot find a solution anywhere. I am running this on Windows XP...
1
by: helpSeekar | last post by:
What is the best character for inserting new line and which is accepted by most of the email clients. Right now I have \n mailMessage.Body = "Line 1 \n Line 2 \n Line 3"; This works good for...
5
by: Richard | last post by:
Working in asp.net I send out an email using the following Code: Dim cdoMsg As New System.Web.Mail.MailMessage Dim strEmailBCC As String = "" strEmailBCC =...
4
by: Ant | last post by:
Hi, I'm using the MailMessage object to send an email programmatically via a console application. It needs to have lines breaks. For example: string s = "This is the first line + "\n\r" + "and...
15
by: Jaraba | last post by:
I am working in a project that I need to parse an arrayt an select records based upon the values parsed. I used the functions developed by Knut Stolze in his article 'Parsing Strings'. I am...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.