Vote count:
0
I have a php script that emails form data to me from a hosted provider domain. I do not have access to the php.ini file.
This script was working fine until about a week ago when emails stopped getting sent - no errors on the script, just the emails didn't leave the email server.
The hosting provider claims that it was because of the attribute: "X-PHP-Originating-Id" on my emails tripping the spam filter.
The attribute does appear, but from the code I use to send the email:
$headers = "From: notspam@foo.com\r\n".
'Reply-To: '.$email_from."\r\n" .
'X-Mailer: PHP/' . phpversion() . "\r\n".
'Return-Path: admin@foo.com';
$additional = "-radmin@foo.com";
$retMail = @mail($email_to, $email_subject, $email_message, $headers, $additional);
if (!$retMail)
{
$error = htmlspecialchars($php_errormsg);
}
else
{
$error = "";
}
I'm not putting that attribute on the header.
I found a number of examples of "spamwatch" emails on the web with the attribute in the header, but I've found no documentation on it specifically (I know about "X-PHP-Originating-Script" - is this a precursor?).
Frankly, I think the hosting site is pointing at a red herring but I wanted to get some groupthink on it.
Thanks in advance!
Aucun commentaire:
Enregistrer un commentaire