madk Posted May 19, 2008 Share Posted May 19, 2008 Hello all, I'm about to write a small script that will be responsible for sending email to about 100-200 clients. My first few emails went out using a while loop and calling the mail function each time. The emails went out fine and (as far as I know) all of the clients received the emails. I have heard of people having trouble while using the mail functions. Normally this is because the servers can't handle the load. This leads me to 2 questions: 1. Should I explore other options for sending out small newsletters? 2. Instead of looping through the email addresses and calling mail() for each one, should I add multiple recipients and just make one call to mail()? ie. // multiple recipients $to = 'aidan@example.com' . ', '; $to .= 'wez@example.com'; Please send me some advice. Thank you, Matt Kris Quote Link to comment Share on other sites More sharing options...
phpzone Posted May 19, 2008 Share Posted May 19, 2008 Not sure, I've not tried sending so many emails in PHP, but what I would say is, don't add them all as 'To' if you do, you should add them as BCC and have the initial To email address be one for your site, for privacy sake. That way the To would be something like maillist@example.com and everyone will just see that address and not everyone elses on the mailing list. Quote Link to comment Share on other sites More sharing options...
MatthewJ Posted May 19, 2008 Share Posted May 19, 2008 One thing to consider is that if you are going to send large emails with many recipients, you may want to put them into the "bcc" field... if you put them all in the "to" field, everyone sees everyone elses emails... This does not always make people so happy . Also, as far as I can tell from having tried it, the server still believes it is sending multiple emails, not just one. I am interested in other's responses, as I am in this boat too Matt Quote Link to comment Share on other sites More sharing options...
BlueSkyIS Posted May 19, 2008 Share Posted May 19, 2008 if you send out too much email at once, you'll get blacklisted and then start to wonder why no one is getting your emails. i suggest that you store emails in a database and send them out gradually using crontab. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.