Funnytowers - 2011-08-30 12:24:03
Hi and thanks for your class, very usefull.
I have a small problem when using the SMTP class and Bulk mail.
When there is one (single) invalid recipient then it cancels the rest of the messages that still need to be send.
for example,
$email_message->SetEncodedEmailHeader("To","good@addre.ss",$to_name);
$error=$email_message->Send();
$email_message->SetEncodedEmailHeader("To","good@addre.ss",$to_name);
$error=$email_message->Send();
$email_message->SetEncodedEmailHeader("To","BAD@addre.ss",$to_name);
$error=$email_message->Send();
$email_message->SetEncodedEmailHeader("To","good@addre.ss",$to_name);
$error=$email_message->Send();
$email_message->SetEncodedEmailHeader("To","good@addre.ss",$to_name);
$error=$email_message->Send();
The last 2 will not get send because the 3rd is invalid. I know this for sure because the "for($recipient" at the bottom part of the test_smtp_message.php only loops ONE invalid address while there are more.
Got any idea how to continue looping the bulk address list when there are invalid recipients listed?
Thanks,
Gabe