Exemplo n.º 1
0
 public void SendEmail(String content)
 {
     if (Send && content != null)
     {
         MailSender m = new MailSender(SendEmailAsync);
         m.BeginInvoke("<html><head>" + Default.emailcss + "</head><body>" + content + signature + "</body></html>", null, null);
     }
 }
Exemplo n.º 2
0
 public void SendEmailToList(ArrayList emaillist)
 {
     if (Send && content != null)
     {
         bool temp = true;
         foreach (String e in emaillist)
         {
             if (temp)
             {
                 email.Tos.Add(e.Trim());
                 temp = false;
             }
             else
             {
                 email.BCCs.Add(e.Trim());
             }
         }
         MailSender m = new MailSender(SendEmailAsync);
         m.BeginInvoke("<html><head>" + Default.emailcss + "</head><body>" + content + signature + "</body></html>", null, null);
     }
 }