Cicode Programming Reference > Cicode Function Categories > Mail Functions Introduction > MailLogoff

MailLogoff

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.

Syntax

MailLogoff()

Return Value

0 (zero) if successful, otherwise an error is returned.

Related Functions

MailLogon, MailSend, 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();

See Also

Mail Functions