- Code: Select all
$copyto = 'firstname.lastname@example.org';
$bcopyto = 'email@example.com';
$headers = 'From: firstname.lastname@example.org' . "\r\n" .
'Reply-To: email@example.com' . "\r\n" .
'Cc: ' . $copyto . "\r\n" .
'Bcc: ' . $bcopyto . "\r\n" .
'X-Mailer: PHP/' . phpversion() . "Content-type: text/plain; charset=iso-8859-1\r\n";
//Now email it
mail($affmail,$messub,$text,$headers . "\r\n");
I have read this page: http://uk.php.net/manual/en/function.mail.php
and I see that I should use "additional_parameters" with -f.
However, I don't understand exactly how to fit this into my $headers string.
Anyone understand this, please?
(56 year old engineer).