Exemple #1
0
 public static SmtpConfig Create()
 {
     if (_smtpConfig == null)
     {
         _smtpConfig = new SmtpConfig();
     }
     return _smtpConfig;
 }
Exemple #2
0
 public static void Send(string frommail, string tomail, string bccmail, string subject,
                         string body, bool isBodyHtml, Encoding encoding, bool isAuthentication, params string[] files)
 {
     Send(SmtpConfig.Create().SmtpSetting.Server, SmtpConfig.Create().SmtpSetting.UserName, SmtpConfig.Create().SmtpSetting.Password, frommail,
          tomail, "", bccmail, subject, body, isBodyHtml, encoding, isAuthentication, files);
 }
Exemple #3
0
 public static void Send(string recipient, string subject, string body)
 {
     Send(SmtpConfig.Create().SmtpSetting.Sender, recipient, "", subject, body, true, Encoding.Default, true, null);
 }
Exemple #4
0
 public static void Send(string tomail, string bccmail, string subject, string body, params string[] files)
 {
     Send(SmtpConfig.Create().SmtpSetting.Sender, tomail, bccmail, subject, body, true, Encoding.Default, true, files);
 }