standard.net.mail.newsletter

newsletter is available since version 1.0.

Prototype:

number newsletter(string from, array to, array|string headers, array|string content[, boolean do_not_wait_confirmation=false] [, string smtp_server="localhost"][,number smtp_port=25])

Parameters

from
the address of the sender
to
the recipients' address (an array containing the addresses as strings)
headers
the e-mail headers; an array containing strings as header or a string (if the same message will be sent to all recipients); if is array, then the count must mach the count of the content array.
content
the e-mail content; an array containing strings as content or a string (if the same message will be sent to all recipients); if is array, then the count must mach the count of the headers array.
do_not_wait_confirmation
Whether to wait for server confirmation for sending a mail or not. If no confirmation, the function will be faster, but will have less error control.
header
the e-mail headers; an array containing strings as header or a string (if the same message will be sent to all recipients); if is array, then the count must mach the count of the content array.
content
the e-mail content; an array containing strings as content or a string (if the same message will be sent to all recipients); if is array, then the count must mach the count of the headers array.
smtp_server
the SMTP server used
smtp_port
the SMTP server port

Description:

Sends one or more email messages to a list of recipients.

Return value:

Returns null if no error was encountered, or the error code returned by the server. To get the last error returned by a server, you could use mail_error. Check also mail.