battie83 Posted March 18, 2009 Share Posted March 18, 2009 Hi, I have pasted some code from our website. I want to add an email to this code so that I receive a copy too. @mail($email, 'Celsur Plastics Order', $msg->get_content(), "From: Celsur Plastics <[email protected]>\nBcc: [email protected]\n".constants::html_email_headers); any help would be much appreciated, thanks Link to comment https://forums.phpfreaks.com/topic/149981-help-with-email-code/ Share on other sites More sharing options...
drisate Posted March 18, 2009 Share Posted March 18, 2009 You can do this $email1, $email2: @mail("$email1, $email2", 'Celsur Plastics Order', $msg->get_content(), "From: Celsur Plastics <[email protected]>\nBcc: [email protected]\n".constants::html_email_headers); or you can duplicate the line if you wana send diffrent content @mail("$email1", 'Celsur Plastics Order 1', $msg->get_content(), "From: Celsur Plastics <[email protected]>\nBcc: [email protected]\n".constants::html_email_headers); @mail("$email2", 'Celsur Plastics Order 2', $msg->get_content(), "From: Celsur Plastics <[email protected]>\nBcc: [email protected]\n".constants::html_email_headers); Link to comment https://forums.phpfreaks.com/topic/149981-help-with-email-code/#findComment-787742 Share on other sites More sharing options...
battie83 Posted March 19, 2009 Author Share Posted March 19, 2009 Thanks very much, perfect. Link to comment https://forums.phpfreaks.com/topic/149981-help-with-email-code/#findComment-788295 Share on other sites More sharing options...
battie83 Posted March 19, 2009 Author Share Posted March 19, 2009 Will the second option "duplicate line" also send another copy to the customer? Will the customer receive 2 confirmation emails? Link to comment https://forums.phpfreaks.com/topic/149981-help-with-email-code/#findComment-788305 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.