已锁定 New line in a txt mail message

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

All Replies

  • Saturday, October 14, 2006 10:40 AM
     
     Answered

    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 12:52 PM
     
     
    Environment.NewLine does not work. However, this does:

    string.Format("First line,{0}{0}second line", "\r\n");