protected void sendStaffEmail(string emailContaent) { try { String response = String.Empty; SendInBlue.EmailReturn emailReturn = new SendInBlue.EmailReturn(); SendInBlue.SendInBlue sendInBlue = new SendInBlue.SendInBlue(); string sFrom = FromEmail; string sTo = staffEmail; string sSubject = "A new service has been submitted."; string sBody = "<table style=\"width: 100%; color: #6d6e71;\"><tr><td> </td></tr><tr><td style=\"width: 10%;\"> </td><td style=\"width: 80%; background: #ffffff; padding: 20px;\"><p style=\"font-size: 16px; color: #262f67;\"> Hello, </p><p style=\"font-size: 16px; color: #262f67;\">" + "A new service has been submitted. Please review the information below, and see attachments for more detail. </p></td>" + "<td> </td></tr></table>" + emailContaent; emailReturn = sendInBlue.SendEmail(sFrom, sTo, sSubject, sBody); response = emailReturn.message; } catch (Exception ex) { Exception exceptionToThrow; if (Diagnostics.ExceptionHandler.ExManager.HandleException(ex, "LogAndThrewException", out exceptionToThrow)) { if (exceptionToThrow == null) { throw; } else { throw exceptionToThrow; } } } }
protected void sendPatientEmail(string emailContaent, string email) { String response = String.Empty; SendInBlue.EmailReturn emailReturn = new SendInBlue.EmailReturn(); SendInBlue.SendInBlue sendInBlue = new SendInBlue.SendInBlue(); string sFrom = FromEmail; string sTo = email; string sSubject = "Thanks from Ride2MD"; string sBody = "<table style=\"background-color: #262f67; width: 100%; color: #6d6e71;\"><tr><td> </td></tr><tr><td style=\"width: 10%;\"> </td><td style=\"width: 80%; background: #ffffff; padding: 20px;\"><a href=\"http://www.ride2md.com\"><img src=\"http://ride2md.com/images/logo_poster_.png\"></a><p style=\"font-family: arial; font-size: 16px; color: #262f67; text-transform: uppercase;\">Thank you for filling out the Ride Request form</p><p style=\"font-family: arial\">We have received your information. Someone from Ride2MD will be contacting you shortly.</p><p style=\"font-family: arial\">If you have requested a pickup service, remember to call in at (855) 631-7433.</p></td><td> </td></tr></table>" + emailContaent; emailReturn = sendInBlue.SendEmail(sFrom, sTo, sSubject, sBody); response = emailReturn.message; }