artweb Posted March 13, 2009 Share Posted March 13, 2009 On my php part of my email form I have this: $to='[email protected] My question is if I want this email form to go to more that just one email how do I write that code? Link to comment https://forums.phpfreaks.com/topic/149251-solved-how-to-send-my-email-form-to-more-than-one-email/ Share on other sites More sharing options...
JonnoTheDev Posted March 13, 2009 Share Posted March 13, 2009 mail("[email protected], [email protected]", ........ Always check the php manual for usage of functions http://uk.php.net/manual/en/function.mail.php Link to comment https://forums.phpfreaks.com/topic/149251-solved-how-to-send-my-email-form-to-more-than-one-email/#findComment-783757 Share on other sites More sharing options...
DyslexicDog Posted March 13, 2009 Share Posted March 13, 2009 you could loop through an array of email addresses. Do you want the email addresses to be posted on the same form? If so you could have the input be comma separated and use explode() to break them out into array members. Link to comment https://forums.phpfreaks.com/topic/149251-solved-how-to-send-my-email-form-to-more-than-one-email/#findComment-783759 Share on other sites More sharing options...
artweb Posted March 13, 2009 Author Share Posted March 13, 2009 Thank you for your help. That's what I needed. Link to comment https://forums.phpfreaks.com/topic/149251-solved-how-to-send-my-email-form-to-more-than-one-email/#findComment-783771 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.