Esempio n. 1
0
 internal static bool SendMail(MailMessage email, EmailSender sender)
 {
     string str;
     return SendMail(email, sender, out str);
 }
Esempio n. 2
0
 internal static bool SendMail(MailMessage email, EmailSender sender, out string msg)
 {
     try
     {
         msg = "";
         return sender.Send(email, Encoding.GetEncoding(HiConfiguration.GetConfig().EmailEncoding));
     }
     catch (Exception exception)
     {
         msg = exception.Message;
         return false;
     }
 }
Esempio n. 3
0
 public static EmailSender CreateInstance(string name)
 {
     return(EmailSender.CreateInstance(name, null));
 }