SENDMAIL success/failure detection

I’m using SENDMAIL in a Basic script in a Flexy. How can I determine success or failure of the command so that I can set a tag value? The programming guide mentions using ONSTATUS, but in very little detail. Maybe there is a simpler way. Thank you.

Hello @jprex4,

After the SENDmail function you would read the eventID. Something like

actionID% = GETSYS PRG,"ACTIONID"
You would then write an routine that check the status of that ID.
ONSTATUS "GOTO ON_EVENT"

Other requests use the same process and there are a few examples posted. Here is another users example for an FTP request. You can see the ON_EVENT towards the bottom of the program.

eWON File Transfer - Ewon Support / Ewon Flexy - hms.how (hms-networks.com)

DEryck

Thank you Deryck. I’ll give this a try.

John Rex