Add cc: to mail form?


#1

//Sending Email to form owner
$pfw_header = “From: $emailn”
. “Reply-To: $emailn”;
$pfw_subject = “web enquiry”;
$pfw_email_to = "me@emailadress.co.uk,you@emailadress.co.uk";
$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: me@emailaddress.co.uk” . “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


#2

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.


#3

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


#4

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