This topic is locked

Any advice using mail() in my batch email solution

10/11/2006 8:44:45 PM
PHPRunner General questions
D
Dale author

Just a quick question for the forum guru's, or ANYBODY that has some experience using the mail() in batch emailing.
I have everything working fine, I added another EXPORT to type in the phprunner templates.

When selecting Export on my customer list, I have a new radio button named Email with a small email icon.
Then when you select Export, function ExporttoEmail() emails all that are in the current list, either the page only or All records. The function sends to each one using the mail() function as demonstrated with phprunner events.
As I said everything is working fine.
BUT, the mailing lists will be anywhere from 30 customers to 1600 customers and growing. The average is about 300, once a week cycle.
I have set it up in the function to email 100 names, pause for 25secs and then run the next 100 emails.

Also I added a the snippet below, allowing the user to even close his browser after the task was started.
set_time_limit(0); ignore_user_abort();

echo "<center><font color=\"red\"><strong>You can close this window now...The batch email will run in the background</strong></font></center>";

flush(); ob_flush();
My question is, Anyone see any issues with this. ANY comments welcome.

I did try pluggin Swiftmailer into the phprunner code, but the result was inconsistent. Some emails sent, some didnt. A lot didnt. That is why I went back to the basic mail().
Any tips and info would be great.