RE: [PHP-DB] mail() ?
| From: | Gurhan Ozen | Date: | Wed, 08 May 2002 17:00:46 +0000 |
| Subject: | RE: [PHP-DB] mail() ? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-19048@lists.php.net to get a copy of this message | ||
Dave,
if they are in the database, just issue your query to retrieve the email
addresses, and loop thru the result set, and mail() each address..
for ($i=0; $i < $number_of_rows; $i++){
$address= ($row["email"]);
mail("$address,.......);
}
Gurhan
-----Original Message-----
From: Dave Carrera [mailto:dave@davecarrera.com]
Sent: Wednesday, May 08, 2002 12:49 PM
To: php-db@lists.php.net
Subject: [PHP-DB] mail() ?
Hi All
One of my customers has gathered email addresses via a web site I
designed an wishes to send an email announcing a special offer to all
these addresses.
I know how to do them singularly, but my question is how can I make an
array ( I think.) from my mysql db containing these email addresses and
send each one the same email, one by one not cc or bcc.
While I await your help and guidance in this issue I will be looking in
various manuals and php.net for mail() but I know this topic is hardly
covered in this kind of detail.
As always you help, guidance, pointers or code examples are very much
appreciated.
Thank you in advance.
P.S; I was able to help someone with knowledge I gained from all of your
help today. It feels great to give back a bit when you can ;-)
Dave Carrera
Php Developer
http://davecarrera.freelancers.net
http://www.davecarrera.com