Page 1 of 1

crons, mails, and php

Posted: Sun Nov 04, 2007 2:48 pm
by user___
Hi guys,
I have to send mass mails to all the users of our site but I am not sure whether it is a good idea to do it by using a crontab because I just execute the file do not I? How can I send about seven thousand mails by avoiding being blacklisted. If it is possible please give me more details on the cron stuff because I am not very aware of it.

Posted: Mon Nov 05, 2007 4:12 am
by aaronhall
Talk to your hosting provider. Your best bet is to use cron to call a script that sends only a small chunk of emails at a time throughout the day, rather than looping through 7000 email addresses in one go.

Your hosting provider should have an interface to cron via a control panel. If not, ask them how you can access the crontab file. The rest is up to you.

Bonus: Swift mailer is much better than using mail() a couple thousand times (and faster)