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 <info@celsurplastics.co.uk>\nBcc: info@celsurplastics.co.uk\n".constants::html_email_headers);

 

any help would be much appreciated, thanks

Link to comment
Share on other sites

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);

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.