I have a php script that sends me form data from a host provider domain. I do not have access to the php.ini file.
This script worked fine until about a week ago, when emails stopped being sent - no errors in the script, only emails left the mail server.
The hosting provider claims that this is due to the attribute: "X-PHP-Originating-Id" on my emails that disable the spam filter.
The attribute appears in my header:
Received: (qmail 12927 invoked by uid 30297); 13 Jun 2013 19:14:34 -0000
Received: from unknown (HELO p3pismtp01-006.prod.phx3.secureserver.net) ([72.167.238.6])
(envelope-sender <noreply@onlineserver.cc>)
by p3plsmtp21-05.prod.phx3.secureserver.net (qmail-1.03) with SMTP
for <admin@foo.com>; 13 Jun 2013 19:14:34 -0000
X-IronPort-Anti-Spam-Result: AsoBANYWulFIp+r1fmdsb2JhbABbw0EWDgEBCQsMCBQog3IzPRKHfAMPsnoNlTSBH4QigQcDiSCCAoo4jgWIU4FR
Received: from p3nlsmtp20.shr.prod.phx3.secureserver.net ([72.167.234.245])
by p3pismtp01-006.prod.phx3.secureserver.net with ESMTP; 13 Jun 2013 12:14:29 -0700
Received: from P3NW8SHG346.phx3.gdhosting.gdg ([184.168.27.83])
by p3nlsmtp20.shr.prod.phx3.secureserver.net with
id nvEV1l00V1nbBZC01vEV2b; Thu, 13 Jun 2013 12:14:29 -0700
Date: Thu, 13 Jun 2013 12:14:29 -0700
Subject: Client Assessment Form
To: owner@foo.com, admin@foo.com, admin2@foo.com, owner2@foo.com
X-PHP-Originating-Id: [10541707]
From: chef@foo.com\r\nReply-To: chef@foo.com
X-Mailer: PHP/5.3.6
X-Nonspam: None
but from the code I use to send 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 do not put this attribute in the header.
In addition, I am just a grep'ed source for PHP 5.3.6 (this is what the host provider supports me), and this attribute also does not appear.
"spamwatch" , ( "X-PHP-Originating- Script" - ?).
, , - , - .
!