Two Receivers of Email from PHP Form?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
zarstylei
Forum Newbie
Posts: 1
Joined: Fri Dec 23, 2011 6:14 am

Two Receivers of Email from PHP Form?

Post by zarstylei »

Hi All!

Relatively new to PHP, but wondering if it is possible to have 2 receivers from a contact form? If so, how will I add the other email add below?

$email_to = "myname@site.com";

Much apprciate your advice. Cheers!

And hAPPY Christmas!

Resty
mikeashfield
Forum Contributor
Posts: 159
Joined: Sat Oct 22, 2011 10:50 am

Re: Two Receivers of Email from PHP Form?

Post by mikeashfield »

Check out foreach loops :-)
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Two Receivers of Email from PHP Form?

Post by Christopher »

The PHP documentation shows how to add CC addresses to emails:

http://us2.php.net/manual/en/function.mail.php
(#10850)
Post Reply