Need help with sending emails in PHP

koeks

Expert Member
Joined
Oct 21, 2008
Messages
1,566
Reaction score
3
Hi Guys,

I need help with a PHP script that can send emails to a list of emails contained in a csv file
 
Have you looked in the manual?

fgetcsv() and mail()
 
use implode() for creating a recipient string
 
problem is there's no bounce or batch handling, and if something bombs due to server / isp limits / script timeout, good luck tracking that down.
why don't you just use mailchimp or campaign monitor?
depending on how big your number of recipients is...
 
If you are using mail() directly, you are doing it wrong :D
 
Have a look at PHPMailer. Its a great script which you can use to send HTML encoded mails, attachements, etc, etc, etc...
 
Have a look at PHPMailer. Its a great script which you can use to send HTML encoded mails, attachements, etc, etc, etc...

I can vouch for phpMailer as well. It supports Linux's mail() function, or if you host on Windows it can support SMTP (for remove mailservers), mail MIME attachments, plain text or full HTML and much more. You literally just copy the libraries into your applications' folders and call the function where needed.

Look here:
http://phpmailer.worxware.com/index.php?pg=examples
http://phpmailer.worxware.com/index.php?pg=examplebmail
http://phpmailer.worxware.com/index.php?pg=exampleasmtp
 
Top
Sign up to the MyBroadband newsletter
X