开发者

html email with link opened with html email off

I would like to send an html email with a link but want it to look ok if html 开发者_如何学运维is off in the recipients email client how can I do this:

With HTML: Available Here

With Out HTML: Available at https://stackoverflow.com/


Then use multipart alternative to send a text version alternative to your HTML email that has the full link.


You should ensure that your text is readable without css or html formatting (i.e. if you're using tables, make sure the order of the text is ok if you strip the tags, if you use images, use alts)

Use a library such as SwiftMailer that will let you add multipart content to an email. It's much easier than setting the headers yourself.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜