Re: C# and Mail NewLine Character?
- From: "Kyle M. Burns" <someone@xxxxxxxxxx>
- Date: Thu, 13 Apr 2006 12:39:50 -0400
Take a look at the BodyFormat property of the MailMessage class.
"Adam Right" <adam@xxxxxxxxx> wrote in message
news:%23H0M$YsXGHA.1192@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
Is there an option to send mail in HTML format in C# mailing functions?
Thanks...
"Kyle M. Burns" <someone@xxxxxxxxxx> wrote in message
news:eTaxD3lXGHA.4120@xxxxxxxxxxxxxxxxxxxxxxx
If you're sending HTML mail (based on the MIME type of the message, not
the presence or lack of HTML tags), then the mail reader will ignore
whitespace including newline. To test this, try replacing the newline
with "<br />" and see what impact that has on your results.
"Adam Right" <adam@xxxxxxxxx> wrote in message
news:%23acju0jXGHA.4684@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
I have used all newline characters such as Environment.NewLine, "\r\n",
StringBuilder.AppendLine(). But when the mail body string has
contructed, it contains only "\r\n". Ok it is normal, but when i send
this string as a body of the mail, it does not recognize '\r\n' as an
newline character. I hope you understand my case. Thanks...
"Simon Hart" <srhartone[no spam]@yahoo.com> wrote in message
news:%23l$VCVjXGHA.3496@xxxxxxxxxxxxxxxxxxxxxxx
Can you not use System.Environment.NewLine?
Simon.
"Adam Right" <adam@xxxxxxxxx> wrote in message
news:u2rvQFiXGHA.3532@xxxxxxxxxxxxxxxxxxxxxxx
Hi,
Is there a way to construct the mail body including newline characters
by using .net framework mailing functions when sending an email? I
cannot insert newline character into the body of the mail.
Thanks...
.
- References:
- C# and Mail NewLine Character?
- From: Adam Right
- Re: C# and Mail NewLine Character?
- From: Simon Hart
- Re: C# and Mail NewLine Character?
- From: Adam Right
- Re: C# and Mail NewLine Character?
- From: Kyle M. Burns
- Re: C# and Mail NewLine Character?
- From: Adam Right
- C# and Mail NewLine Character?
- Prev by Date: Re: FTP
- Next by Date: Re: Downloading file
- Previous by thread: Re: C# and Mail NewLine Character?
- Next by thread: find method
- Index(es):
Relevant Pages
|