Help - Search - Members - Calendar
Full Version: Submit form to multiple emails using a PHP form
Weborum Webmaster Forum > Web Page Design > PHP
su1
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 = "address@email.com";
$from = $_POST['email'];
$subject = "Website Enquiry";

Let me know, thanks!


_______________________
conservatories Fruit Machines
Joe
I haven't tested this method - but have you tried separating each address with a semi-colon?

CODE
$to = "address1@email.com; address2@email.com";
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.