Re: C# and Mail NewLine Character?

Tech-Archive recommends: Fix windows errors by optimizing your registry



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...











.



Relevant Pages

  • Re: C# and Mail NewLine Character?
    ... Is there an option to send mail in HTML format in C# mailing functions? ... Is there a way to construct the mail body including newline characters ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: C# and Mail NewLine Character?
    ... If you're sending HTML mail (based on the MIME type of the message, ... But when the mail body string has contructed, ... Is there a way to construct the mail body including newline characters ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: C# and Mail NewLine Character?
    ... But when the mail body string has contructed, ... Is there a way to construct the mail body including newline characters by ... using .net framework mailing functions when sending an email? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: C# and Mail NewLine Character?
    ... Is there a way to construct the mail body including newline characters by ... using .net framework mailing functions when sending an email? ...
    (microsoft.public.dotnet.languages.csharp)
  • C# and Mail NewLine Character?
    ... Is there a way to construct the mail body including newline characters by ... using .net framework mailing functions when sending an email? ...
    (microsoft.public.dotnet.languages.csharp)