public static string SendEmailMessage(SMSEmailNotification smsEmail) { return SendAPIMessage(smsEmail.OrganizationName, smsEmail.OrganizationEmail, smsEmail.SMSEmailRecipient, smsEmail.MessageSubject, smsEmail.MessageBody); }
public void SMSEmailAPITest() { try { SMSEmailNotification email = new SMSEmailNotification { MobileNumber = "6108833253", Carrier = MobileCarrier.ATT, OrganizationName = "Lionville Fire Company", MessageSubject = "Incident - AFA", MessageBody = "Fire Alarm \r\n 15 S Village Ave" }; string result = Email.SendEmailMessage(email); Console.WriteLine(result); } catch (Exception ex) { Console.WriteLine(ex.ToString()); } }
public SMSEmailNotification GetSMSEmailNotification(OrganizationUserAffiliation userOrgAffiliation) { SMSEmailNotification smsEmail = new SMSEmailNotification(); smsEmail.MobileNumber = userOrgAffiliation.CurrentUserProfile.MobileDevices.First().MobileNumber; smsEmail.Carrier = userOrgAffiliation.CurrentUserProfile.MobileDevices.First().Carrier; smsEmail.MessageBody = GetShortNotificationBody(); smsEmail.OrganizationName = userOrgAffiliation.CurrentOrganization.Name; return smsEmail; }