By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,521 Members | 1,460 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,521 IT Pros & Developers. It's quick & easy.

PHP mail(to, ...) question

P: 1
I am using a basic PHP form. On the process page, it is currently sending the completed form to a single recipient. Now I find that I need to send this completed form to three separate recipients instead. I'm not all that up to date on the protocols, so I am asking your help. My current line is as follows:

$mymail = 'bob@www.com';

I also want steve@www.com and bill@www.com to get this email form as well.

What is the proper protocol I would need to add to this line to ensure that all three received the emailed form? Do I separate by commas? Spaces? Both

Your help is appreciated.
Feb 22 '08 #1
Share this Question
Share on Google+
3 Replies


P: 16
You should be able to just seperate the email addresses by commas.
Feb 22 '08 #2

NeoPa
Expert Mod 15k+
P: 31,537
Julian, as the PHP forum exists I'm moving your PHP question there from the Lounge (non-technical) forum.

Good luck & Welcome to TheScripts.
Feb 22 '08 #3

ronverdonk
Expert 2.5K+
P: 4,258
See the PHP documentation at THIS LINK for a description of the mail() function.

Receiver, or receivers of the mail.

The formatting of this string must comply with RFC 2822. Some examples are:

* user@example.com
* user@example.com, anotheruser@example.com
* User <user@example.com>
* User <user@example.com>, Another User <anotheruser@example.com>
Ronald
Feb 22 '08 #4

Post your reply

Sign in to post your reply or Sign up for a free account.