Method Protocols.SMTP.AsyncClient()->send_message()
- Method
send_message
voidsend_message(stringfrom,array(string)to,stringbody,function(:void)|voidcb,mixed...args)- Description
Sends a mail message from
fromto the mail addresses listed intowith the mail bodybody. The body should be a correctly formatted mail DATA block, e.g. produced by MIME.Message.When the message is successfully sent, the callback will be called (
cb(1, @args);).When the message cannot be sent,
cbwill be called in one of the following ways:cb(({ 1, errno(), error_string, int(0..1) direct }), @args);cb(({ 0, smtp-errorcode, error_string, int(0..1) direct }), @args);
where direct will be
1if this particular message caused the error and0otherwise.- See also