473,320 Members | 1,814 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,320 software developers and data experts.

Unable to add a new line do a MailMessage

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
Jul 19 '05 #1
1 2725
Environment.NewLine has worked for me.

"Bizzo" <al************@hotmail.com> wrote in message
news:cc**************************@posting.google.c om...
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

Jul 19 '05 #2

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

Similar topics

1
by: Tim Mavers | last post by:
I am using the MailMessage class and am dynamically building the message body field. I know I am using String and not String builder but I don't want to worry about that now. The problem is after...
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...
1
by: bmcelhany | last post by:
I have a windows service that monitors a directory for newly created files. When one is found, an e-mail is generated and the new file is added as an attachment. In order to avoid trying to attach...
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
3
by: Nader | last post by:
Hello all, Any help would be greatly appreciated. In a Web-based application (server is local) I am trying to send an email from the server side by The error occurs at the following line...
2
by: Rene | last post by:
Hi all i need some help. i try to send mail with the following code. Private Sub LinkButton1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles LinkButton1.Click Dim...
0
by: bazzer | last post by:
hey, im trying to access a microsoft access database from an ASP.NET web application in visual basic 2003.NET. i get the following error when i try running it: Server Error in...
1
by: nate.strules | last post by:
I've looked everywhere for an answer to this, but only a few people seem to have encountered it. The code is straightforward: MailMessage mail = new MailMessage(from, to, subject, body);...
7
by: Dave Hardenbrook | last post by:
I am new to ASP.NET (only coded web pages in HTML in the past), and I'm having some trouble: I have a form on which a visitor to my page can fill out comments and send them to my E-mail box. The...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.