public static string SendEmailMessage(SMSEmailNotification smsEmail)
 {
     return SendAPIMessage(smsEmail.OrganizationName, smsEmail.OrganizationEmail, smsEmail.SMSEmailRecipient, smsEmail.MessageSubject, smsEmail.MessageBody);
 }
Exemple #2
0
 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());
     }
 }
Exemple #3
0
 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;
 }