Sending Multiple Emails from database

Codes here !

Moderators: macek, egami, gesf

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

Postby Hurkle » 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 tom@yahoo.com, dick@aol.com, harry@hotmail.com, would this work?

Code: Select all

$str_to = "tom@yahoo.com, dick@aol.com, harry@hotmail.com"
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
Redcircle
Moderator
Moderator
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA
Contact:

Postby Redcircle » 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.


Return to “mySQL & php coding”

Who is online

Users browsing this forum: No registered users and 1 guest

cron