Programming, website development forum Get latest updates by RSS Follow TechnicalTalk on Twitter Follow TechnicalTalk on Facebook 
HomeSearchRecent PostsLoginRegisterContact Us

Username  
Password    
  Forgot your password?  

Pages: [1]   Go Down
 
  Email this topic  |  Print
0 Members and 1 Guest are viewing this topic.

Submit form to multiple emails using a PHP form

 
webmaster forum
suforum  Offline
Activity
0%
 
New Poster
Posts: 1
Topics: 1
July 27, 2008, 05:39:10 AM

Hi guys,

I would just like to know how to be able 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!


« Last Edit: July 07, 2011, 10:06:03 AM by Admin »
 
webmaster forum
polas  Offline
Activity
33.33%
 
Code Guru
Gender: Male
Posts: 1399
Topics: 85
WWW
July 28, 2008, 06:52:29 AM

Use a comma in the $to variable.

For instance $to='test@test.com, another@test2.com';

Nick

Mesham Type Oriented Parallel Programming Language, Free online technical support
 
  Email this topic  |  Print
Pages: [1]   Go Up
 
Jump to:  



Powered by SMF 1.1.15 | SMF © 2011, Simple Machines


Google visited last this page January 17, 2012, 07:57:04 PM