Forum Moderators: coopster
For a long time we have provided newsletter functionality to our clients but we have used the same system for over a year now, and it is one I built when I wasn't very experienced with PHP.
I want to know the best way to send out an email mailer. At the moment, we send out the email to each email address seperately on a recursive loop.
The PHP file will send out about 40 emails then reload itself, do the next 40, and so forth.
I am almost postive there is a better way of sending out the mailer, and I am hoping someone on here could help me.
I have no problem with the HTML or junk mail filters, it is just the methid we use to send the email, as a ~500 person mailing list is talking about 30 minutes to send.
Thank you.
a ~500 person mailing list is talking about 30 minutes to send
Is that how long the script takes to execute or how long it takes sendmail to finish sending? I have a list of about 1,500 email addresses and it takes a minute or two at most to send them all (and that's on a shared host). All I do is use a while loop to select the name and email address from a database and use mail() for each record. (Yeah I know this is probably not the most efficient way, either ;) )
You could look at the PEAR Mail [pear.php.net] class.
So, for each email it must connect to the SMTP server, send it, then close.
I dunno, I'm looking for the professional and most efficient way of doing this.
We have a dedicated server on Linux incase root access is a factor.
Thanks!