473,508 Members | 2,392 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2318
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
2731
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
4043
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
890
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
1346
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
7528
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
542
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
1769
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
1815
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
2881
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
7380
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7039
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7494
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5626
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5050
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4706
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3192
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
763
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
415
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.