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.");
 }
Exemple #3
0
 public void EmailSent(Email message)
 {
     Clients.All.emailSent(message);
 }
Exemple #4
0
 public static void Enqueue(Email message)
 {
     message.Queued = DateTime.Now;
     messages.Enqueue(message);
     enqueued.OnNext(message);
 }