![]() |
|
|
||||||||||||||||
![]() |
Products and Services | ![]() |
Infrastructure | ![]() |
Support | ![]() |
Contact Us | ![]() |
Specials | ![]() |
Log In | ![]() |
|
|||||||
| 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. |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
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. |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|