Re: sending multipule email with mail ()
| From: | Mathias Meyer | Date: | Mon, 26 Jun 2000 18:03:10 +0000 |
| Subject: | Re: sending multipule email with mail () | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-3160@lists.php.net to get a copy of this message | ||
Name: Mark Lo <markloky@netvigator.com>
Subject: [PHP-GENERAL] sending multipule email with mail ()
Date: 27.06.00, 01:30:52
> I know how to use the mail funtion, but how to use the mail
> function to send multiple email messages to different person. Should
I
> use the mail () inside a while loop if all of the email address is
> stored in the database. Is this a formal way to send multiple email.
> Any suggestion is helpful.
Do you plan to use it for a newsletter? I.e. send one message to
different persons? In that case I suggest an additional Bcc-Field in
your Mail-Header. There you can add the additional email-addresses
comma-separated. For example:
mail("me@my.domain.com", "Newsletter No. 1", "This is my first
Newsletter", "Bcc: you@your.domain.com, he@his.domain.com");
In case you want to send different mail to different people, you'll have
to use kinda your version I guess.
Best regards,
Mathias Meyer
--
PHP-Stand auf Europas groesster Linux-Messe: 'Linux-Tag' !
weitere Infos @ http://www.dynamic-webpages.de/