Logs off from the mail system. You should log off the mail system when all mail operations are complete. CitectSCADA automatically logs off the mail system on shutdown.
0 (zero) if successful, otherwise an error is returned.
MailLogon, MailSend, MailRead
! Send the report to Rodger
MailLogon("Andrew", "password", 0);
MailSend("Rodger Gaff", "Report", "This is the weekly report", "[data]:weekly.txt", 0);