コード例 #1
0
ファイル: SendMail.cs プロジェクト: SoMeTech/SoMeRegulatory
 private static MessageClass GetMailClass()
 {
     MessageClass class2 = new MessageClass {
         Logging = false,
         Silent = false,
         Charset = "GB2312",
         ContentType = "text/html",
         Encoding = "base64",
         ContentTransferEncoding = "base64",
         Priority = 3,
         FromName = "栀子花开鲜花礼品网"
     };
     class2.AddNativeHeader("Message-ID", Guid.NewGuid().ToString());
     class2.AddHeader("Originating-IP", "222.77.178.219");
     class2.AddHeader("Mailer", "Jmail send of Hailsoft Inc.");
     class2.AddHeader("Company", "Hailsoft.Inc.");
     return class2;
 }