Dynadot โ€” .com Registration $8.99

Submit form to multiple emails using a PHP form

Spaceship Spaceship
Watch
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
•••
Appraise.net
Unstoppable Domains
Domain Recover
DomainEasy โ€” Live Options
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back