Пример #1
0
 public static void Send(string Recipient, string Sender, string Subject, string Body)
 {
     Send(SmtpConfig.Create().SmtpSetting.Server, Sender, Recipient, Subject, Body, true, Encoding.UTF8, true, null);
 }
Пример #2
0
 public static SmtpConfig Create()
 {
     if (_smtpConfig == null)
     {
         _smtpConfig = new SmtpConfig();
     }
     return _smtpConfig;
 }
Пример #3
0
 public static void Send(string recipient, string subject, string body)
 {
     Send(SmtpConfig.Create().SmtpSetting.Server, SmtpConfig.Create().SmtpSetting.Sender, recipient, subject, body, true, Encoding.Default, true, null);
 }