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

前端 未结 6 1387
余生分开走
余生分开走 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:42

    Several email clients will use the last AlternateView that was added to the AlternateViews.

    So if you prefer to have your mail displayed as HTML, be sure to add that last.

    I have notice this for IOS mail and OSX mail, while Android Email seems to prefer HTML if it is available. I am not sure for which versions this holds, and the behaviour is often user-configurable, but in my experience these were the defaults.

提交回复
热议问题