PDA

View Full Version : Mass email using php


MacMorag
Mon 2nd Oct '06, 5:16am
I want to use mysql/php to send out emails to a customer list of 3,000+ names. I have considered using the native php "mail()" function, but have read that it is unsuitable for mass emailing. I immediately thought "Ah,but I can send out mass emails to my vBulletin users". But I can't see in the vbcode how they do this. Do they just use mail()?

nico_swd
Mon 2nd Oct '06, 5:33am
You can use vBulletin's vbmail() function.


include('./includes/global.php');

vbmail('recipient@host.com', 'subject', 'message');



If you send 3000 mails at the same time, hotmail or others might consider you as a spammer and block your emails or move them automatically to the spam folder. vBulletin uses a mail queue and doesn't send them all at the same time. Plus it sends the mails via SMTP, which is better, and the chance that it goes through is higher.