MyBB Community Forums

Full Version: PHP mail help?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Does anyone know how I could get mail() to send an email without showing the recipient addresses?
Would it work to put the addresses into the BCC field of $headers?

Also, how can I insert multiple addresses (from a database)?
The best method is to send it to yourself and BCC the rest.

The mailto will be the same as the reply email basically.
Ok, thank you!
So, will mail() accept comma seperated values for multiple addresses?
You can read more about the mail function of php here:

http://us3.php.net/manual/en/function.mail.php

And I believe comma seperated values will work.
Thanks.
Hey, I know this is kind of off topic, but what would be the code to make addresses in the database come out as comma separated other than makeing what puts the addresses into the database put a comma on them? (for example, the script would put in "[email protected]," instead of "[email protected]"
I think you could use implode(',' $emails);
where is $emails is a array that contain your emails