phpmailer - batch email send with response -


I want to send batch mail using swift mail or any similar system. Swift Mailer Docks explains that:

"Receives a different copy with only their own email address in the To: field, to each recipient of the message. An integer is given in which the successful recipients "I want to know that it is possible to find out which email addresses have failed, and receive an alternative error error / code."

. There is another page in the instructions that talks about batchend () failures and one, And I suspect the batch should be done the same way .

  $ Mailer = SWIFT_Amler :: New Instance (...); $ Message = swiftmessage :: new instance (...) - & gt; SetFrom (...) - & gt; Setu (Array ('receiver@bad-domain.org' = & gt; 'Receiver name', 'Other @ domain.org' = & gt; 'one name', 'other- receiver@bad-domain.org' = & Gt; 'Other names')) - & gt; Setbodi (...); // Send a variable name () method to send if (! $ Mailer- & gt; Send ($ message, $ failure)) {echo "failures:"; Print_r ($ failures); } / * Failures: Array (0 => receiver @ BAD-domain, 1 => other- receiver@bad-domain.org) * /  

Comments