Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while ($rij = mysql_fetch_array($result))
- {
- $to = $rij[0];
- //$to ="test@gmail.com";
- if ($rij[1] != NULL) $to .= ", $rij[1]";
- $mailResult = $mail_queue->put($from, $to, $hdrs, $body);
- $mail_queue->sendMailsInQueue(50);
- //var_dump($mailResult);
- if(!PEAR::isError($mailResult)) {
- $m++;
- } else {
- $n++;
- print "Mail niet verstuurd naar ".$to."! " . $mailResult->getMessage() . "<br>";
- }
- }
- //print 'testing..';
- //exit;
- print "<br>".$m." mails verstuurd<br>".$n." mails niet verstuurd";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement