I need to be able to send emails to contacts
stored in a database(its for newsletter not spam :P). I’m able to do this using mail() and a loop, but
I’ve read that this isn’t a very good idea as there could be a few
hundred contacts.
What is the best way to go about this? Any advice or pointers in the
right direction will be greatly appreciated!
Thanks.
mail() will be very slow with several hundred contacts. I recommend swiftmailer at http://www.swiftmailer.org. Here’s an example of sending many mails from thier site:
And you can use your SMTP connection/account to send, or sendmail.