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 <info@celsurplastics.co.uk>\nBcc: info@celsurplastics.co.uk\n".constants::html_email_headers); any help would be much appreciated, thanks Quote Link to comment 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 <info@celsurplastics.co.uk>\nBcc: info@celsurplastics.co.uk\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 <info@celsurplastics.co.uk>\nBcc: info@celsurplastics.co.uk\n".constants::html_email_headers); @mail("$email2", 'Celsur Plastics Order 2', $msg->get_content(), "From: Celsur Plastics <info@celsurplastics.co.uk>\nBcc: info@celsurplastics.co.uk\n".constants::html_email_headers); Quote Link to comment Share on other sites More sharing options...
battie83 Posted March 19, 2009 Author Share Posted March 19, 2009 Thanks very much, perfect. Quote Link to comment 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? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.