Submit form to multiple emails using a PHP form

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
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
Close
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
Close
DomainEasy: white label portfolios are live. Enable yours.

We're social

Escrow.com
Spaceship
Domain Recover
CryptoExchange.com

NamePros updates

Switch between accounts
You can now stay logged in to more than one NamePros account in the same browser. Click your avatar, then "Accounts in this browser", to...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back