11Tami Posted January 16, 2007 Share Posted January 16, 2007 Hi, here's the first variable that works fine as is. $mailto = $_POST['email'];How do I add a second to it so that it sends to two different emails? Neither of the following works. Thank you very much.$mailto = $_POST['email'] . $_POST['email2'] ; $mailto = $_POST['email'], $_POST['email2'] ; Quote Link to comment Share on other sites More sharing options...
Orio Posted January 16, 2007 Share Posted January 16, 2007 Add a comma between them:$mailto = $_POST['email'].", ".$_POST['email2'];Read more about the "to" parameter in the manual- [url=http://www.php.net/manual/en/function.mail.php]mail()[/url].Orio. Quote Link to comment Share on other sites More sharing options...
11Tami Posted January 17, 2007 Author Share Posted January 17, 2007 Thanks a lot orio, that was it. :) Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.