Send the given Message to all recipients individually.
This differs from send() in the way headers are presented to the recipient. The only recipient in the "To:" field will be the individual recipient it was sent to.
If an iterator is provided, recipients will be read from the iterator one-by-one, otherwise recipient data will be retreived from the Message object.
Sender information is always read from the Message object.
The return value is the number of recipients who were accepted for delivery.
Tags:
Parameters:
int send(
Swift_Mime_Message
$message, [
&$failedRecipients = null], array
&$failedRecipients,)
|
|
Send the given Message like it would be sent in a mail client.
All recipients (with the exception of Bcc) will be able to see the other recipients this message was sent to.
If you need to send to each recipient without disclosing details about the other recipients see batchSend().
Recipient/sender data will be retreived from the Message object.
The return value is the number of recipients who were accepted for delivery.
Tags:
Parameters: