什么是格式电子邮件使用System.Net.Mail时,最好的方法 [英] What is the best method for formatting email when using System.Net.Mail

查看:758
本文介绍了什么是格式电子邮件使用System.Net.Mail时,最好的方法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 System.Net.Mail 来发送一些HTML格式的电子邮件。

Hi I'm using System.Net.Mail to send some HTML formatted emails.

什么是CSS插入到电子邮件消息正确的方法?

What is the correct method for inserting css into the email message?

我知道我可以申请格式到每个项目,但I'ld而使用样式表。

I know I can apply formatting to each item, but I'ld rather use style sheets..

修改
我应该提到这是一个内部应用程序,我希望使用Outlook或其他客户端用户的99%,但从来没有Gmail或Hotmail等。

EDIT I should have mentioned that this is for an internal application, and I expect 99% of users to be using Outlook or other client, but never hotmail or gmail etc.

推荐答案

我总是发现,严格使用的 HTML 3.0兼容的标签和格式最适合所有电子邮件的读者和供应商。

I've always found that strictly using HTML 3.0 compatible tags and formatting works best for all email readers and providers.

不过这里有一个 CSS在电子邮件文章,可能回答你的问题,你会找到解决你的CSS问题。

nevertheless here is a CSS in Email article that may answer your question, you will find solutions to your css problems.

这篇关于什么是格式电子邮件使用System.Net.Mail时,最好的方法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆