PAC Control doesn't send email?


#1

I have set up test alarms for 10am and 10pm. Sometimes I get them, sometimes I don’t but haven’t noticed any patterns as to why. nResult= 0 all the time with no error messages. I have three recipients; (2) are [I]phone#@vtext.com /I is [I]email@gmail.com.[/I] I always receive the gmail message but the @vtext.com are the ones I’ve been having issues with. I called Verizon to see if it was something on their end but they claimed it wasn’t.

Code:
arrstrBody[0] = “Alarms Notification”;

//Send test alarm
Alarm_Seconds = GetSecondsSinceMidnight();

If (Alarm_Seconds >= Alarm_Day and Alarm_Seconds < Alarm_Night and Test_Alarm_Toggle == 0) then
Test_Alarm_Toggle = 1;
arrstrBody[1] = “Test Alarm”;
nResult = SendEmail(arrstrServer, arrstrRecipients_1, arrstrBody);
else
If (Alarm_Seconds >= Alarm_Night and Test_Alarm_Toggle == 1) then
Test_Alarm_Toggle = 0;
arrstrBody[1] = “Test Alarm”;
nResult = SendEmail(arrstrServer, arrstrRecipients_1, arrstrBody);
endif
endif

if (nResult == 0) then
// E-mail was sent
else // We had some trouble sending the email, log that to the Message Queue
NumberToString(nResult, strTempString);
strErrorMessage = "Could not send email, error: " + strTempString;
AddMessageToQueue(16, strErrorMessage);
endif

Any help will be greatly appreciated, Thanks!

-lalo