locked
New line in a txt mail message

    Question

  • How do I start a new line in a text formatted mail body?
    Saturday, October 14, 2006 9:43 AM

Answers

  • if the email message is in Html Format the it uses HTML tags. So an HTML Tag for a new line is <br>

    if its just a text format, then Environment.NewLine should be ok to use.

    Saturday, October 14, 2006 10:40 AM

All replies

  • if the email message is in Html Format the it uses HTML tags. So an HTML Tag for a new line is <br>

    if its just a text format, then Environment.NewLine should be ok to use.

    Saturday, October 14, 2006 10:40 AM
  • Environment.NewLine does not work. However, this does:

    string.Format("First line,{0}{0}second line", "\r\n");
    Saturday, October 14, 2006 12:52 PM