这个类是关于 电子邮件类型类的操作,在发送电子邮件是规定以什么样的格式发送,Xml,HTML,文本等方式
1.电子邮件类型帮助类,Xml格式,HTML格式等
看下面代码吧
/// <summary> /// 类说明:Assistant /// 编 码 人:苏飞 /// 联系方式:361983679 /// 更新网站:[url=http://www.cckan.net/thread-655-1-1.html]http://www.cckan.net/thread-655-1-1.html[/url] /// </summary> using System.Net.Mime; namespace DotNet.Utilities { /// <summary> /// 电子邮件类型类 /// </summary> public static class MediaTypes { public static readonly string Multipart; public static readonly string Mixed; public static readonly string Alternative; public static readonly string MultipartMixed; public static readonly string MultipartAlternative; public static readonly string TextPlain; public static readonly string TextHtml; public static readonly string TextRich; public static readonly string TextXml; public static readonly string Message; public static readonly string Rfc822; public static readonly string MessageRfc822; public static readonly string Application; static MediaTypes() { Multipart = "multipart"; Mixed = "mixed"; Alternative = "alternative"; Message = "message"; Rfc822 = "rfc822"; MultipartMixed = string.Concat(Multipart, "/", Mixed); MultipartAlternative = string.Concat(Multipart, "/", Alternative); MessageRfc822 = string.Concat(Message, "/", Rfc822); TextPlain = MediaTypeNames.Text.Plain; TextHtml = MediaTypeNames.Text.Html; TextRich = MediaTypeNames.Text.RichText; TextXml = MediaTypeNames.Text.Xml; } } }