hensl Posted July 3, 2006 Posted July 3, 2006 Hello, After the installation of a spam filter by my hosting company I receive no emails anymore from my contact form. I thing the problem is that the "From" command ([email protected]) in not send in the email and because of that the spam filter is thinking that it is spam. Does somebody know what php file en how I need to modify? Thanks in advance
osCommerce4you.com Posted July 3, 2006 Posted July 3, 2006 Try to add different headers to your emails like X-Sender etc. The spam filter pass or don't pass your emails depending on those headers
hensl Posted July 3, 2006 Author Posted July 3, 2006 Try to add different headers to your emails like X-Sender etc.The spam filter pass or don't pass your emails depending on those headers What file file do I need to modify and how?
osCommerce4you.com Posted July 3, 2006 Posted July 3, 2006 Really fast reply :) Do you have the orginal (clean) osCommerce?
hensl Posted July 3, 2006 Author Posted July 3, 2006 Really fast reply :)Do you have the orginal (clean) osCommerce? Almost clean :) Do you know what to modify?
osCommerce4you.com Posted July 3, 2006 Posted July 3, 2006 includes/functions/general.php find function tep_mail look for "X-Mailer: osCommerce Mailer" add to this array other headers. You should ask your hosting company, what headers you should add to let your emails pass their spam filter.
hensl Posted July 3, 2006 Author Posted July 3, 2006 includes/functions/general.php find function tep_mail look for "X-Mailer: osCommerce Mailer" add to this array other headers. You should ask your hosting company, what headers you should add to let your emails pass their spam filter. Thanks so far....I will try it.....
hensl Posted July 3, 2006 Author Posted July 3, 2006 Thanks so far....I will try it..... It is not working.....I have done this (see below) // Instantiate a new mail object $message = new email(array('X-Mailer: osCommerce Mailer')); $headers = "From: company <[email protected]>\n";
hensl Posted July 4, 2006 Author Posted July 4, 2006 It is not working.....I have done this (see below) // Instantiate a new mail object $message = new email(array('X-Mailer: osCommerce Mailer')); $headers = "From: company <[email protected]>\n"; .
Silverado05 Posted July 4, 2006 Posted July 4, 2006 Are you sure it's your client or your mail software not letting it through. For example what if you added the email addy to your contacts or safe list within your software (Outlook) or your mail client. If that doesn't work you might wanna contact your hosting provider before you start editing code cause it might be a screw up on their end. Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
hensl Posted July 4, 2006 Author Posted July 4, 2006 Are you sure it's your client or your mail software not letting it through. For example what if you added the email addy to your contacts or safe list within your software (Outlook) or your mail client. If that doesn't work you might wanna contact your hosting provider before you start editing code cause it might be a screw up on their end. I use webmail from the hosting company where the website is also hosted. After the installation of the spam filter from the hosting company this email issue occur....
Silverado05 Posted July 4, 2006 Posted July 4, 2006 Yes webmail is a feature of the cPanel software that most hosts use. Not to mention most users of websites use the mail through their site from their host. So I take it you don't use a POP3 to a 3rd party mail app like Outlook. If this is true then I would be calling your host and ask them what the deal is because they can adjust the filter on your IP for your site. I don't think this is a problem on the OSC end. IMO Search the forum and contributions before posting. If that doesn't work, keep looking, then post. The forum is for seeking help and advice NOT for someone to do your work for you. Try to do something on your on, if you are going to run a shop then learn how it works.
hensl Posted July 4, 2006 Author Posted July 4, 2006 This is the solution... The following file is modified includes/functions/general.php function tep_mail($to_name, $to_email_address, $email_subject, $email_text, $from_email_name, $from_email_address) { if (SEND_EMAILS != 'true') return false; // Instantiate a new mail object $message = new email(array('X-Mailer: osCommerce Mailer', 'Reply-To: '.$from_email_address)); // Build the text version $text = strip_tags($email_text); if (EMAIL_USE_HTML == 'true') { $message->add_html($email_text, $text); } else { $message->add_text($text); } // Send message $message->build_message(); $message->send($to_name, $to_email_address, 'Kiddiz', '[email protected]', $email_subject); } The solution do I have from the webhoster after some calls...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.