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

MailError

Gets the last mail error code. The error code is extracted from the MAPI mail system, and explains what caused the MAPI error.

Syntax

MailError()

Return Value

0 (zero) if successful, otherwise an error is returned. Refer also to MAPI errors.

Related Functions

MailLogon, MailLogoff, MailSend, MailRead

Example

! Logon to the mail system
IF MailLogon("RodgerG", "password", 0) THEN
error = MailError();
!do what is required
END

See Also

Mail Functions