Code: Select all
$copyto = 'email@example.com';
$bcopyto = 'firstname.lastname@example.org';
$headers = 'From: email@example.com' . "\r\n" .
'Reply-To: firstname.lastname@example.org' . "\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).