Jump to content

Help with email code


battie83

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.