Welcome to Geeklog, Anonymous Thursday, March 28 2024 @ 05:35 am EDT

Geeklog Forums

Guarding GL mails (witn mail()) ) from SPAM filters


Status: offline

Stranger

Forum User
Newbie
Registered: 04/08/05
Posts: 5

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:

Text Formatted Code
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 Formatted Code
$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

 Quote

All times are EDT. The time is now 05:35 am.

  • Normal Topic
  • Sticky Topic
  • Locked Topic
  • New Post
  • Sticky Topic W/ New Post
  • Locked Topic W/ New Post
  •  View Anonymous Posts
  •  Able to post
  •  Filtered HTML Allowed
  •  Censored Content