Work at Home Forum - An online community of those who work from home.
Web Design and Hosting Work at Home Forum / Web Design and Hosting /

Submit form to multiple emails using a PHP form

Author Message
suforum
Forums Member
Joined: 27 Jul 2008
Posts: 1
#1 · Posted: 27 Jul 2008 00:52


Hi guys,

I would just like to know how to beable to submit a form to 2 email addresses.
I am using a .php form and this is how my html coding goes with a single email address:

$to = "[email protected]";
$from = $_POST['email'];
$subject = "Website Enquiry";

Let me know, thanks!

[Links removed - Admin]

Vishal P. Rao
Administrator
Joined: 23 Jun 2005
Posts: 1357
#2 · Posted: 27 Jul 2008 01:04 · Edited by: Vishal P. Rao


Separating email address with comma in the $to field should do the trick I believe.

$to = "[email protected], [email protected]";

__________________
Your Reply
   :) ;) :-( ... Disable smilies

» Username  » Password 
Only registered users are allowed to post here. Please enter your login/password details upon posting a message, or sign up first.
Messages not conforming to the forum rules will not be approved or, deleted without any explanation.
Please do not post email addresses. If essential, obfuscate them (user [at] domain.com or something like that).
Please do not apply BOLD to entire post.
Please do not post Titles in all CAPS.
 


Page loading time (secs): 0.034

Custom Search
Member Ranking · Terms of Use · Privacy Policy · About Us · Contact Us · Support Us · Friends

© 2004-2011 Work at Home Forum. All rights reserved.