public bool SendMail(Email email)
        {
            bool sent = true;

            try
            {
                Manager.SendEmail(email.ToAddress, email.Subject, email.Message);
            }
            catch (Exception ex)
            {

                sent = false;
            }

            return sent;
        }
示例#2
0
 public void dothis(object sender, ElapsedEventArgs e)
 {
     Email email = new Email();
     email.sendemail();
     //Library.WriteErrorLog("Timer ticked and some job has been done successfully.");
 }
示例#3
0
 public void EmailSent(Email message)
 {
     Clients.All.emailSent(message);
 }
示例#4
0
 public static void Enqueue(Email message)
 {
     message.Queued = DateTime.Now;
     messages.Enqueue(message);
     enqueued.OnNext(message);
 }