Ejemplo n.º 1
0
 public static void SendMailer(EMAIL Email, List<CAMPAIGN> Campaigns, String Subject, List<CAMPAIGN> FutureCampaigns)
 {
     MailMessage mail = new MailMessage();
     mail.To.Add(new MailAddress(Email.Email1));
     mail.Subject = Subject;
     mail.IsBodyHtml = true;
     mail.Body = Transfomer.GenerateNewsletter(null, Campaigns, FutureCampaigns);
     mail.From = new MailAddress("*****@*****.**", "FZone");
     SmtpClient client = new SmtpClient();
     //client.EnableSsl = true;
     client.Timeout = 5000;
     client.Send(mail);
 }
Ejemplo n.º 2
0
 private void SendEmail(EMAIL Customer, List<CAMPAIGN> Campaigns, string Subject, List<CAMPAIGN> FutureCampaigns)
 {
     try
     {
         FashionZone.BL.Util.Mailer.SendMailer(Customer, Campaigns, Subject, FutureCampaigns);
         log("Mail to " + Customer.Email1 + " sent.");
     }
     catch (Exception ex)
     {
         log("Error sending newsletter to " + Customer.Email1 + " - " + ex.Message);
     }
 }