473,382 Members | 1,646 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

PHP mail(to, ...) question

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
3 1204
phpmind
16
You should be able to just seperate the email addresses by commas.
Feb 22 '08 #2
NeoPa
32,556 Expert Mod 16PB
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
4,258 Expert 4TB
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

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

Similar topics

8
by: EBG | last post by:
I'm an HTML novice and have a "mail to" form on my site where users fill in info and send it to the email address I specify. After looking into it, it's obvious this isn't the way to go, as most...
1
by: qushui_chen | last post by:
Anybody can explain the directly send mail to pop3 Server? 1.if it is use Smtp protocol? 2.if i write one Smtp Server?
6
by: erdem kemer | last post by:
i cant send mail to yahoo mail or hotmail while i can send my other mail accounts (pop3) is it becouse yahoo and hotmail is web-based mail here is the code MailMessage mailMsg = new...
3
by: Pav | last post by:
Hi, I am developing a small Intranet web application which needs to send mails to our coporate Ids. I am using CDONTS, But my mails never leave Que folder. Not able to find out what the...
15
by: Craig Hurley | last post by:
Hello, user@x.com receives an email from user@a.com. I want to forward that email to user@y.com. I want the contents/header to remain intact, with the exception of adding "X-Forwarded-For". ...
1
nitindel
by: nitindel | last post by:
Hi All, Greetings.... I am working on ASP, VBScript ,Javascript.......and in one piece of module i want to send mail . and i am using ASP Persits software... but the error is very...
2
by: npbaker1 | last post by:
I am not able to get an e-mail sent to multiple recipients. I am using C# in VS 2003. Here is the code: MailMessage mail = new MailMessage(); mail.To =...
7
by: r0g | last post by:
I'd like PHP to send mail to a local mailserver running at localhost:25 like I used to on windows. This mailserver is a dummy server which just writes the mail to disk for unit testing and works...
5
by: praveenb000 | last post by:
$to = $contacts; //'***@gmail.com'; $subject = 'Job Requirements from Recruiter(Broad Light)'; //$adminMainR = $_SESSION; $adminMainR = "***@3kits.com"; $headers =...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.