I'm working on a mail-feature that sends reminder mails to clients with unfinished tasks. Simple mail, text only, one receiver for each mail.
This script is activated with a sceduled task or cron and looks up the records in a db and then composes a 'task-specific' message (an action was due before xxxxx . Please proces task xxxx etc) and then send the message + sets a flag after the email was sent. So i need to do it with PHP
I've read in a usercomment at php.net that mail() is to slow because it opens a connection to the SMTP socket for each individual mail. But i nowhere find any real info on the performance of mail() --> from the few posts and comments that i could google up, it sounds like this is mainly an issue on windows OS.
Anyone has first-hand experience with sending larger sets of emails (about 50 to 100) and then mainly : is mail() performant enough to send out 100 mails before the script times out ? Or do i need to cut the recordsets up and create a two-page loop until all records are processed? (Or do I need to find out the hard way ?)
This script is activated with a sceduled task or cron and looks up the records in a db and then composes a 'task-specific' message (an action was due before xxxxx . Please proces task xxxx etc) and then send the message + sets a flag after the email was sent. So i need to do it with PHP
I've read in a usercomment at php.net that mail() is to slow because it opens a connection to the SMTP socket for each individual mail. But i nowhere find any real info on the performance of mail() --> from the few posts and comments that i could google up, it sounds like this is mainly an issue on windows OS.
Anyone has first-hand experience with sending larger sets of emails (about 50 to 100) and then mainly : is mail() performant enough to send out 100 mails before the script times out ? Or do i need to cut the recordsets up and create a two-page loop until all records are processed? (Or do I need to find out the hard way ?)
Comment