Page 1 of 1

Email Problem!

Posted: Tue Jun 29, 2004 12:12 pm
by Joe
I was wondering if it was possible to send an email to every email in my database. The column name which holds the emails is "Emails". Is this possible? I was thinking of creating a while loop to show all the emails and use mail() to send to each address.

Any help appreciated!


Joe 8)

Posted: Tue Jun 29, 2004 2:38 pm
by feyd
yeah, you can use that.. however you may need to batch the mail if your provider has a limit on mass mailing.. they probably do..

Posted: Tue Jun 29, 2004 2:48 pm
by patrikG
also you need to bear script-timeout in mind. Don't set_timeout() to 0 (i.e. never) - that could, in the worst circumstances, crash the server. Rather set a high timeout (59 minutes) and call your mailing script every hour to check if it needs to send more emails.