Author Topic: Trying to add a CC function to a php contact form  (Read 219 times)

macrat101

  • New Member
  • *
  • Posts: 11
  • Karma: +0/-0
    • View Profile
Trying to add a CC function to a php contact form
« on: September 03, 2010, 03:54:47 PM »
I have a php contact form that works perfectly.


It has a drop down list, and the forms results are emailed to the selected drop down persons email address.


I want to add a CC to the form ... so that there is a copy, or record of all emails sent from the form.


Not sure how to do this.


Below is what I have ... how do I integrate the CC function into the script.


Thanks!


___________________________________________________________________________


PHP Code: [Select]
$to $_POST["to"];  if(!in_array($to,array("ian@xxx.com","adam@xxx.com","keith@xxx.com","sue@xxx.com","mark@xxx.com","scott@xxx.com","joyce@xxx.com","joe@xxx.com","ken@xxx.com","info@xxx.com"))) $to "support@xxx.com";  $subject "Order";