curtis_b Posted May 15, 2006 Share Posted May 15, 2006 I'm writing a solution that relies on system-generated emails for customer communications. Our company has recently switched webhosts, and I'm noticing that I no longer receive auto-generated email triggered by these scripts. To debug, I Carbon Copy: my gmail account and sure enough, it shows up in gmail, but not through our new host's email accounts (network solutions). I blame this on their built-in spam filter software (symantec brightmail). The quick fix would be to ask N.S. to disable the spam filter for us, but that won't solve the problem for any number of our customers who either use N.S. or have a comparable filter in place. I'm wondering if anyone can give me some advice on how to overcome this issue, certainly every web-based business out there needs to use system-generated emails, what are they doing differently?Thanks for your help. Curt Quote Link to comment Share on other sites More sharing options...
_will Posted May 15, 2006 Share Posted May 15, 2006 What headers (arg #4, mail() function) are you using when you send your email? I ran into a similar problem a while back where I wasn't sending headers and a spam filter was flagging the messages as spam. Can you post the code where you call mail(). Quote Link to comment Share on other sites More sharing options...
curtis_b Posted May 15, 2006 Author Share Posted May 15, 2006 I'm using the libmail class, (http://lwest.free.fr/doc/php/lib/Mail/) rather than paste that entire file along with my code I will give you the printout it gives me on the confirmation page and that will show you all the headers. Mail was sent:To: Curt@7cpco.comFrom: joe@schmo.com <<fake, but will be filed out by customer through formX-Priority: 4 (Low)CC: Jennie@7cpco.comBCC: curtis.branum@gmail.comMime-Version: 1.0Content-Type: text/plain; charset=us-asciiContent-Transfer-Encoding: 7bitX-Mailer: Php/libMailv1.3Thanks for your help! Quote Link to comment Share on other sites More sharing options...
_will Posted May 15, 2006 Share Posted May 15, 2006 Is it possible to suppress the X-Mailer tag? Quote Link to comment Share on other sites More sharing options...
haydndup Posted May 15, 2006 Share Posted May 15, 2006 I downloaded the LibMail class to have a look at. what _will suggested earlier might work... open up libmail.php, and comment out line 333(assuming you are using the newest version of libmail)://$this->xheaders["X-Mailer"] = "Php/libMailv1.3";See if that works Quote Link to comment Share on other sites More sharing options...
_will Posted May 15, 2006 Share Posted May 15, 2006 Additionally, it might be worth a try to see if the spam filters would treat your email differently if you made your X-Mailer header mimic that of say, Outlook, Eudora or Thunderbird. Quote Link to comment Share on other sites More sharing options...
alpine Posted May 15, 2006 Share Posted May 15, 2006 i use the X-mailer myself and this is not the problem as long as it's real, faking it would be a risky move if you ask me. Was it the FULL header you posted there ?I use IE express (dont say Anything...please) as email client, and this states different warnings on the x-spam status.I managed to get this down to -0.5 when sending out from php5 through smtp, havent tested it on hotmail, but yahoo accepts every mail to inbox, not bulk[code]To: [sensored out]@[sensored out].noSubject: [sensored out]X-Message-Key: IA==From: [sensored out] <[sensored out]@[sensored out].no>Reply-To: [sensored out] <[sensored out]@[sensored out].no>X-Mailer: PHP v5.1.4Date: Thu, 11 May 2006 13:55:42 +0200Message-ID: <200605111355429PMYBYQ7N3UY@www.[sensored out].no>MIME-Version: 1.0Content-Transfer-Encoding: 8bitContent-Type: multipart/related; boundary="cdaa02e008ad65fa30a03fbb1c294ee5"X-Spam-Status: No, hits=-0.5 required=4.0X-Spam-Report: -0.5 hits, 4.0 required; * -0.5 ALL_TRUSTED Passed through trusted hosts only via SMTPX-Virus-Scanned: by moam (http://www.moam.net/)X-Moam-Version: 0.92[/code]i fixed proper message ID, encoding, content type, mime-boundary etc. to fix my problems. Quote Link to comment Share on other sites More sharing options...
_will Posted May 15, 2006 Share Posted May 15, 2006 Oh, I agree that faking an X-Mailer and using it in a production environment would be a bad idea. I am just interested in seeing how the spam filters react to the same message coming from different clients. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.