public bool SendMail(Email email) { bool sent = true; try { Manager.SendEmail(email.ToAddress, email.Subject, email.Message); } catch (Exception ex) { sent = false; } return sent; }
public void dothis(object sender, ElapsedEventArgs e) { Email email = new Email(); email.sendemail(); //Library.WriteErrorLog("Timer ticked and some job has been done successfully."); }
public void EmailSent(Email message) { Clients.All.emailSent(message); }
public static void Enqueue(Email message) { message.Queued = DateTime.Now; messages.Enqueue(message); enqueued.OnNext(message); }