C# Send both HTML and Text email - most elegant?

前端 未结 6 1385
余生分开走
余生分开走 2021-01-30 23:17

Is is best practice to send both HTML and Text email?

If I only send HTML what are the dangers?

I\'m thinking something like this below from

http://johnn

6条回答
  •  盖世英雄少女心
    2021-01-30 23:48

    I think yes, the best practice is to send both. The reason (c&p from wikipedia):

    The default e-mail format according to RFC 2822 is plain text. Thus e-mail software isn't required to support HTML formatting. Sending HTML formatted e-mails can therefore lead to problems at the recipient's end if it's one of those clients that don't support it. In the worst case, the recipient will see the HTML code instead of the intended message.

提交回复
热议问题