But since batchSend() returns an integer.. is there an internal counter involved? Like a class member updated? If so, would it be possible (or easily doable, or even fathomable, etc..) to write a listener for it to get realtime browser updates on how many emails have been sent?
In psuedo code, something like..
Code: Select all
while ($numSent = $swift->batchSendListen($message, $recipients, $from))
{
echo $numSent . '<br />';
}