grungefreak Posted April 4, 2008 Share Posted April 4, 2008 Hi, Using the mail() function, is it possible to send to multiple users? e.g. a few people run this site and I want them to received the form submissions to their respective email addresses direct from the site, without having one person forwarding onto the other person. GF Link to comment https://forums.phpfreaks.com/topic/99605-mail-function-send-to-multiple-email-addresses/ Share on other sites More sharing options...
graham23s Posted April 4, 2008 Share Posted April 4, 2008 yep you could do: $emails = "email1,email2"; <-- etc mail($emails,$subject,$body,$headers); that should work Graham Link to comment https://forums.phpfreaks.com/topic/99605-mail-function-send-to-multiple-email-addresses/#findComment-509573 Share on other sites More sharing options...
grungefreak Posted April 5, 2008 Author Share Posted April 5, 2008 yep you could do: $emails = "email1,email2"; <-- etc mail($emails,$subject,$body,$headers); that should work Graham Thank you, I'll try that. I didn't know you could seperate with commas. GF Link to comment https://forums.phpfreaks.com/topic/99605-mail-function-send-to-multiple-email-addresses/#findComment-510234 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.