什么是格式电子邮件使用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.