Sending Multiple Emails from database

Codes here !

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 36
Joined: Tue Jan 07, 2003 8:45 am
Location: Minnesota, USA

Thu Feb 06, 2003 3:44 pm

is it possible that the "to:" string in the mail function can consist of multiple email addresses? i.e. if you had 3 user in your db, with emails like,,, would this work?

Code: Select all

$str_to = ",,"
mail($str_to, $subject, $message, $headers);

Most mail setups seem to let you have multiple comma seperated addresses. If so, you might be able to build a multiple address 'to' string to use with the mail function.

best of luck..

User avatar
Posts: 826
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Fri Feb 07, 2003 2:56 am

Well if you want you can blind CC people the info. BCC that way you only need to send the message once and it will seem like 1 original message.

Post Reply