note 55099 deleted from function.mail by betz
| From: | betz@php.net | Date: | Mon, 25 Jul 2005 23:10:40 +0000 |
| Subject: | note 55099 deleted from function.mail by betz | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-92433@lists.php.net to get a copy of this message | ||
Note Submitter: a dot hari at softprosys dot com
----
"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");