note 55099 added to function.mail

From: Date: Mon, 25 Jul 2005 17:53:31 +0000
Subject: note 55099 added to function.mail
Groups: php.notes 
Request: Send a blank email to php-notes+get-92425@lists.php.net to get a copy of this message
"Guido", the same you can do like this also. // fetch adresses from database while ($emailadresses = mysql_fetch_array($query, MYSQL_ASSOC)) { foreach ($emailadresses as $oneMailadres) { $recepientsArr[] = "$oneMailadres"; //build up the recepient ARRAY } } //Make recepients string $recepients = implode(",", $recepientsArr); //actual sending mail($recepients, $subject, $mailbody, "From: $senderAddress"); ---- Manual Page -- http://www.php.net/manual/en/function.mail.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55099 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55099&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55099&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55099&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55099&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55099&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55099&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55099&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92425) next »