Portal Home > Knowledgebase > Articles Database > Submit form to multiple emails using a PHP form


Submit form to multiple emails using a PHP form




Posted by amberlong83, 12-29-2009, 08:08 AM
Hello everyone I want to submit a form to 2 email addresses. I am using a php form My html code for single email $to = "address@email.com"; $from = $_POST['email']; $subject = "Website Enquiry"; thanks in advance

Posted by Avalon Systems, 12-29-2009, 08:17 AM
Simply change the following. $to = "address@email.com"; to... $to = "address@email.com, address2@email.com"; http://uk.php.net/manual/en/function.mail.php

Posted by amberlong83, 12-29-2009, 08:26 AM
thanks for your suggesion

Posted by FreeKill, 12-31-2009, 02:47 PM
You can also send to additional emails using CC and BCC if you need to. All you need to do is fill in the optional "headers" section of the call: with something like:



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read


Language:

LoadingRetrieving latest tweet...

Back to Top Copyright © 2018 DC International LLC. - All Rights Reserved.