standard.net.mail.mail_error

mail_error is available since version 1.0.

Prototype:

string mail_error()

Description:

Gets the last error encountered by the mail or newsletter functions. The error is the one returned by the server.

Return value:

Returns the last error in a send mail operation. If no error was encountered, an empty string will be returned.