Been sorting a problem with manual spam sent from my website contact page and found another.
If I enter my @gmail.com address in the email field the mail is sent but if I enter my @btinternet.com address it isn't. Can't see why that should be. The PHP code is:
$title = "Web Site Enquiry";
$headers = "From: $email\r\n";
$headers .= "Reply-To: $email\r\n";
$headers .= "MIME-Version: 1.0\r\nContent-type: text/plain; charset=iso-8859-1";
$msg = "Mail sent via xxx website\r\n".$msg;
mail($recipient,$title,$msg,$headers);
Anyone see any reason why that's ok when $email is gmail but not BT?? Cheers.
PS Nearly posted this in Light Relief. Complete senility coming soon.
If I enter my @gmail.com address in the email field the mail is sent but if I enter my @btinternet.com address it isn't. Can't see why that should be. The PHP code is:
$title = "Web Site Enquiry";
$headers = "From: $email\r\n";
$headers .= "Reply-To: $email\r\n";
$headers .= "MIME-Version: 1.0\r\nContent-type: text/plain; charset=iso-8859-1";
$msg = "Mail sent via xxx website\r\n".$msg;
mail($recipient,$title,$msg,$headers);
Anyone see any reason why that's ok when $email is gmail but not BT?? Cheers.
PS Nearly posted this in Light Relief. Complete senility coming soon.
Comment