SMTP_SENT Stopped working for no apparent reason
I've got a NX-2200 Master Firmware 1.6.179, I have a program that has been running in some form for years. It was previously running on a NI-4000 just fine. About a month ago It stopped sending me emails. I have a section of the program that sends me a text every morning at sunrise with the sunrise sunset and moon phase. It is also supposed to send me an email when one of my WiFi temperature sensors drop offline. This code has literally been working for years. I get an authentication error every time. (error 4) I though that Gmail may have changed things, but it seems not. I tried to log on another SMTP server (outlook.com) and it would not use that one either!
Here is the setup code:
dvMAIL_SERVICE = 0:3:0
SMTP_SERVER_CONFIG_SET(SMTP_USERNAME, '[email protected]')
SMTP_SERVER_CONFIG_SET(SMTP_FROM, 'Jim Johnson')
and the send code is:
DEFINE_CALL 'SEND_A_MESSAGE'(CHAR cEMAIL_DESTINATION, CHAR cEMAIL_SUBJECT, CHAR cEMAIL_BODY)
MAIL_IDX = SMTP_SEND(dvMAIL_SERVICE, cEMAIL_DESTINATION, cEMAIL_SUBJECT,cEMAIL_BODY,Null_STR)
Any help would be appreciated, I thought that AMX had the e-mail thing all worked out.