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

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

    If you only send HTML, then anyone reading email on a text-only device will have trouble.

    For example, I suspect many low-end mobile devices are capable of reading email but not displaying full HTML.

    I would say it's best practice to either send text-only, or text and HTML.

    I don't see why you're catching a bunch of exceptions only to rethrow the same exception type with a different message, by the way - the original message may well be more descriptive.

提交回复
热议问题