I have a Cakephp app that has users with ids and emails (emails might not be a valid address).
So I use pairmail and loop through the users table to send emails.
foreach($users as $u)
{
if($this->sendMail($u['to'], $u['subject'], $u['text_message'], $u['html_message']))
//update database with sent email
}
It works fine with 1 or 2 addresses, but it gets stuck when I run it through all the users. Is it because I have invalid addresses or my php script times out?
To cut down the delivery cruft you could: