Add cc: to mail form?

//Sending Email to form owner
$pfw_header = “From: $emailn”
. “Reply-To: $emailn”;
$pfw_subject = “web enquiry”;
$pfw_email_to = "[email protected],[email protected]";
$pfw_message = “Please Log As W/Enn”
. “Title: $titlen”
. “Firstname: $firstnamen”
. “Surname: $surnamen”
. “Address1: $address1n”
. “Address2: $address2n”
. “City: $cityn”
. “Postcode: $postcoden”
. “Contact No: $contactnon”
. “Email: $emailn”
. “Dishwasher: $dishwashern”
. “Fridge Freezer: $fridgefn”
. “Washing Machine: $washern”;
@mail($pfw_email_to ,$pfw_subject ,$pfw_message ,$pfw_header ) ;

//then we put the details into the database

i tried this but this doesnt work either…

//Sending Email to form owner
$headers .= “To: [email protected]” . “rn”;
$headers .= “From: $emailn” . “rn”;
$headers .= “Cc: meagain@emailaddress” . “rn”;
$subject = “test”;
$message = “testnn”
. “Title: $titlen”
. “Firstname: $firstnamen”
. “Surname: $surnamen”
. “Address1: $address1n”
. “Address2: $address2n”
. “City: $cityn”
. “Postcode: $postcoden”
. “Contact No: $contactnon”
. “Email: $emailn”
. “Dishwasher: $dishwashern”
. “Fridge Freezer: $fridgefn”
. “Washing Machine: $washern”;
mail($to ,$subject ,$message ,$headers ) ;

//then we put the details into the database

//Below checkbox decs

I see you using a lot of LFs (n) to break your lines. I’m thinking the problem is in the n that you use just before the CC header (you’re actually using nrn, which is what your mail function could be tripping over). This is explained in the PHP Manual though.

im stuck i cant get it toi work… can some one please please fix my code???

No, we cannot fix your code. We don’t do script requests.

Sponsor our Newsletter | Privacy Policy | Terms of Service