Posted on: 07/12/05 11:54am
By: Stranger
Hi,
My ISP has just changed SPAM filtering options (again…) and… ye, right, mails from the portal, which is hosted at the 3-d place, now go to the trashcan. But I am also running a little script, where I use PHP mail() function directly. Surprisingly enough, mails from this little fellow-script do not trigger the SPAM filter.
So I looked into headers and the only differences I see is… the header:
Message-Id: <blah,blah,blah.......>
Content-Transfer-Encoding: quoted-printable
I went into system/pear/Mail/mail.php and commented out lines 101-106 (both included).
Than I hard-coded the header, like this:
$text_headers = "Content-type: text/html; charset=iso-8859-1rn";
$text_headers .= "From: Booking portal <...my...reply...eamil...>rn";
$text_headers .= "X-Priority: 1rn"; // This is for high priority
$text_headers .= "X-Mailer: GeekLog 1.3.9sr2rn";
$text_headers .= "Content-Transfer-Encoding: quoted-printablern";
What I could see, that the Message-Id is now closing the header, instead of "Content-Transfer…" does. So when the Message-Id is closing the message, then the message goes to the inbox, not into the trashcan.
I have also looked inside the Mail.php, (system/pear/Mail.php) lines 125-163 (both incl.), but I couldn't figure out how to modificate the function… Maybe someone else can look at it, so that we resolve this thing for good…
Using GL,
Stranger