Codes here !
Moderators: macek, egami, gesf
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 email@example.com
, would this work?
- Code: Select all
$str_to = "firstname.lastname@example.org, email@example.com, firstname.lastname@example.org"
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..
- New php-forum User
- Posts: 36
- Joined: Tue Jan 07, 2003 8:45 am
- Location: Minnesota, USA
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.
- Posts: 830
- Joined: Tue Jan 21, 2003 10:42 pm
- Location: Michigan USA
Return to mySQL & php coding
Who is online
Users browsing this forum: No registered users and 1 guest