kcotter Posted May 13, 2009 Share Posted May 13, 2009 Here's my code... how can I send this info to (2) addresses???? <?php if (empty($_REQUEST['name']) || empty($_REQUEST['email'])) { print 'Please go back and Enter name and Email...<a href="form.html">Back</a>'; } else { print 'Thank you '.$name.' for registering to win! <a href="#" onclick="window.close();return false;">close</a>'; $name = "Name: ".$_REQUEST['name']."\n" ."Email: ".$_REQUEST['email']."\n" ."Address: ".$_REQUEST['address']."\n" ."City: ".$_REQUEST['city']."\n" ."State: ".$_REQUEST['state']."\n" ."Zip: ".$_REQUEST['zip']."\n" ."How they heard about us: ".$_REQUEST['hear']; mail("kalcotter1@yahoo.com", "Someone Registered at BuyWithoutDebt", $name, "From: BuyWithoutDebt@register.com\r\nReply-To: noreply@bwd.com\r\n"); } ?> THANKS!!!!! Link to comment https://forums.phpfreaks.com/topic/157900-add-more-than-one-email-recipient/ Share on other sites More sharing options...
xtopolis Posted May 13, 2009 Share Posted May 13, 2009 Read example #4, the top lines of code. http://us3.php.net/manual/en/function.mail.php Link to comment https://forums.phpfreaks.com/topic/157900-add-more-than-one-email-recipient/#findComment-832972 Share on other sites More sharing options...
Maq Posted May 13, 2009 Share Posted May 13, 2009 Quote Read example #4, the top lines of code. http://us3.php.net/manual/en/function.mail.php Seems like that would be important, they should put something like that in the manual. Link to comment https://forums.phpfreaks.com/topic/157900-add-more-than-one-email-recipient/#findComment-832973 Share on other sites More sharing options...
xtopolis Posted May 13, 2009 Share Posted May 13, 2009 Quote Parameters to Receiver, or receivers of the mail. The formatting of this string must comply with » RFC 2822. Some examples are: * user@example.com * user@example.com, anotheruser@example.com .... I wish there were some examples, easily seen, about what I might be able to do referenced at the beginning. Link to comment https://forums.phpfreaks.com/topic/157900-add-more-than-one-email-recipient/#findComment-832976 Share on other sites More sharing options...
Maq Posted May 13, 2009 Share Posted May 13, 2009 Quote Quote Parameters to Receiver, or receivers of the mail. The formatting of this string must comply with » RFC 2822. Some examples are: * user@example.com * user@example.com, anotheruser@example.com .... I wish there were some examples, easily seen, about what I might be able to do referenced at the beginning. Hehehe kcotter, these examples in the manual should cover all the issues you addressed, let us know if there are any other problems. Link to comment https://forums.phpfreaks.com/topic/157900-add-more-than-one-email-recipient/#findComment-832979 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.