Webhosting.net Internet Hosting Webhosting.net Internet Hosting
Forums | Sitemap | Resources | Home
Contact Webhosting.net
 

Go Back   Webhosting.net Forums > Hosting > Email
Register FAQ Support Calendar Search Today's Posts Mark Forums Read

Email Email services include mailboxes, anti-spam and anti-virus solutions, webmail, protocols such as SMTP, POP3 & IMAP, scripts to send and process email as well as complete management solutions for your organization's email needs.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old March 22nd, 2008, 09:48 PM
sohoportal sohoportal is offline
Junior Member
 
Join Date: Feb 2006
Posts: 1
Default osCommerce, Windows & Spam Assassin

If you have a site that is throwing an error similar to the following, visit one of the two following links to resolve your issue:

------------------------

Warning: mail() [function.mail]: SMTP server response: 554 Sorry, this message appears to be spam (#5.6.0) in H:\hshome\userid\yourdomain.com\catalog\includes\c lasses\email.php on line 520

Warning: Cannot modify header information - headers already sent by (output started at H:\hshome\userid\yourdomain.com\catalog\includes\c lasses\email.php:520) in H:\hshome\userid\yourdomain.com\catalog\includes\f unctions\general.php on line 29

-------------------------

The problem with the default configuration of osCommerce and Windows is that you will get these hits from SpamAssassin:

http://forums.oscommerce.com/lofiver...p?t223307.html

DATE_IN_PAST_03_06, INVALID_DATE, MSGID_FROM_MTA_ID, NO_REAL_NAME

To fix this, modify email.php send() function as follows:

at the top:
$from_name = $from_addr; //This fixes the issue where the function that calls us doesn't use From_Name

down by the actual returns:


//You can see that I added a date header. You can replace -0400 with whatever your GMT offset is.
//-0400 is Eastern Time.
//You will also see that I doubled the "from" header. Windows' MTA uses the first from for sending,
//but the second from includes a "Real Name" which is important to SpamAssassin.

if (EMAIL_TRANSPORT == 'smtp') {
return mail($to_addr, $subject, $this->output, 'Date: ' . date('D, d M y H:i:s') . ' -0400' . $this->lf . 'From: ' ."-f" . $from_addr . $this->lf . 'From: ' . $from . $this->lf . 'To: ' . $to . $this->lf . implode($this->lf, $this->headers) . $this->lf . implode($this->lf, $xtra_headers));

------------------

or

------------------

osCommerce Contributions

http://www.oscommerce.com/community/...me+zone+offset

Last edited by sohoportal : March 24th, 2008 at 05:28 PM.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 04:20 PM.


Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.