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'] ; Link to comment https://forums.phpfreaks.com/topic/34395-how-to-add-an-extra-mailto-to-this/ 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. Link to comment https://forums.phpfreaks.com/topic/34395-how-to-add-an-extra-mailto-to-this/#findComment-161900 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. :) Link to comment https://forums.phpfreaks.com/topic/34395-how-to-add-an-extra-mailto-to-this/#findComment-162446 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.