NameSilo

Submit form to multiple emails using a PHP form

SpaceshipSpaceship
Watch

suforum

New Member
Impact
0
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!
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
if you are using the mail function then simply seperate the email address you are sending too with a ,:-

PHP:
mail('[email protected], [email protected]', $email_title, $email_message, $extra_headers);
 
0
•••
CatchedCatched

We're social

Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back