I
Igor S
Hi, I'm generating email message from my web app using asp.net 2.0 mail
objects. Each line in the message displays certain info and they all lined up
one under another.To achive that in c# I add "\n" to the string to creat a
new line. Resulting message display exactly what I need in yahoo mail but
outlook strips out extra line breaks following its own logic by leaving some
and removing some. The result is a total mess. Ex:
Date: 07/27/2007 - 07/28/2007
Location: Eric P. Newman Education Center (new line is here) Amount Paid($):
980.00 (new line is here)Transaction ID: V78A0C34914F (new line is
here)Transaction Date: 11/1/2007 at 2:25 PM
--------------------------------------------
--------------------------------------------
Last Name: Doe
First Name: Joe
As you can see some of the lines bunched together, some stay where they
suppose to. All my code to generate these lines is in exactly the same form .
Ex:
strMsgBody += "Some info: " +SomeInfoValue+ "\n" ;
It looks just fine in other mail clients (ex.yahoo mail)
Whta is the deal and how to fix it? Thx!
objects. Each line in the message displays certain info and they all lined up
one under another.To achive that in c# I add "\n" to the string to creat a
new line. Resulting message display exactly what I need in yahoo mail but
outlook strips out extra line breaks following its own logic by leaving some
and removing some. The result is a total mess. Ex:
Date: 07/27/2007 - 07/28/2007
Location: Eric P. Newman Education Center (new line is here) Amount Paid($):
980.00 (new line is here)Transaction ID: V78A0C34914F (new line is
here)Transaction Date: 11/1/2007 at 2:25 PM
--------------------------------------------
--------------------------------------------
Last Name: Doe
First Name: Joe
As you can see some of the lines bunched together, some stay where they
suppose to. All my code to generate these lines is in exactly the same form .
Ex:
strMsgBody += "Some info: " +SomeInfoValue+ "\n" ;
It looks just fine in other mail clients (ex.yahoo mail)
Whta is the deal and how to fix it? Thx!