Jump to content

php contact form email array ... I need the results sent to the admin also


macrat101

Recommended Posts

the form results are being sent to the selected email address in the array ... but I need a copy sent to the admin email address as well.

 

before adding the array addresses ... the forms results were being sent to the admin, but after adding the array ... the admin address is out of the loop.

 

How do I get the admin@home.com address to receive a copy of the forms results?

 

I'm not sure if it needs to be a Bcc or what?

 

Thanks in advance.

 

________________________________________________________________________________________

 

$to = $_POST["to"];

if(!in_array($to,array("ian@elsewhere.com","adam@elsewhere.com","keith@elsewhere.com","sue@elsewhere.com","mark@elsewhere.com","scott@elsewhere.com","joyce@elsewhere.com","joe@elsewhere.com","ken@elsewhere.com","info@elsewhere.com")))

$to = "admin@home.com";

$subject = "Order";

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.