Send PHP form results to multiple recipientsSending results from PHP forms to multiple e-mails
PHP form
 Home   Forms tutorial   How to articles   Link to us   Donations   Contact 

PHP form > How to > Sending form results to multiple recipients

Sending form results to multiple recipients

Need to send a copy of form results to your business partner? To your friend? To someone helping you with a project? So, how do you send the e-mail with form results to multiple recipients?

The answer is: easy! All you need to do is separate multiple e-mail addresses in the PHP mail() function (remember the Form to Mail tutorial?) with a comma ( , ).

As shown before to send an e-mail to you would use this PHP code:

mail("", "Test e-mail", "Hi, this is a test message!");

Now if you wanted to send a copy of the same e-mail also to and you would just use all three (separated with a comma) as the first parameter in the mail() function:

" , ,"

Now the code would look like this:

mail(" , ,",
"Test e-mail", "Hi, this is a test message!");

That's it!


Jump to:  
  2.1 PHP form not working
  2.2 Sending form results to multiple recipients
  2.3 Sending an autoresponder message
  2.4 Make sure form e-mails are not blocked by your SPAM filter
  2.5 Stop form SPAM without using Captcha
  2.6 Which method to use for your form: GET or POST?
  2.7 Contact forms or Help desk software?
  2.8 Prevent multiple form submissions
  2.9 Secure order forms
  2.10 Hosting and PHP forms

Help desk software Hesk

» Copyright notice

© 2008-2024 All rights reserved. Copying or redistributing any part of this website without our written permission is expressly forbidden!

Page copy protected against web site content infringement by Copyscape


Help desk software

Help myPHPform by Donating!

  Home  Forms tutorial  How to articles  Link to us  Donations  Contact  
© Copyright PHP form 2008-2024. All rights reserved.
All trademarks are property of their respective owners.
Privacy policy