standard.net.mail.sent_count

sent_count is available since version 1.0.

Prototype:

number sent_count()

Description:

Gets the number of e-mails sent by the last call to mail or newsletter. After a mail call, this function returns always 1. This is useful when using newsletter, and you want to check how many of the e-mails were sent before an error was encountered, to avoid sending the same e-mail twice to a recipient.

Return value:

Returns the number of e-mails sent by the last call to mail or newsletter.