Just wanted to know what the best way to deal with a system that makes use of lots of emails. The application itself creates emails using php mail() function, but I recall reading that this was not necessarily the best way to do this if sending lots of emails.
Any suggestions or thoughts are appreciated.
Depending on how many emails you are talking about, there are a few suggestions.
If your emails aren't time sensitive, you should queue them for a time when system resources aren't taxed as much. Say around midnight, or from 3-4 in the morning depending on what kind of load your system experiences.
Also, pausing the email sending process after each email is a good idea also. In addition, getting your own SMTP server so you can further customize delivery should also be a consideration.
I run the free postcast server (Windows platforms) on my system so I can control the delivery of email for my entire network. Works wonders, and you don't have to worry about your ISP SMTP service choking on multiple emails.
Hoping this helps, -- Burhan Khalid phplist[at]meidomus[dot]com
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php