MailLogoff
- Last UpdatedJul 18, 2023
- 1 minute read
Logs off from the mail system. You should log off the mail system when all mail operations are complete. Plant SCADA automatically logs off the mail system on shutdown.
Syntax
MailLogoff()
Return Value
0 (zero) if successful, otherwise an error is returned.
Related Functions
MailLogon, MailLogoff, MailRead
Example
! Send the report to Rodger
MailLogon("Andrew", "password", 0);
MailSend("Rodger Gaff", "Report", "This is the weekly report",
"[data]:weekly.txt", 0);
MailLogoff();