Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Emails not sent after site hacked


Guest

Recommended Posts

Posted

Hi! Yesterday my site ?(along with many others) was hacked by a group of arab hackers. All the index, default, home and main files were affected, replaced with a file created by them. I managed to get it working in the end, but I still have a problem. Email dont't get sent from the store to... anywhere.

Now... what should I do? Where do I look for the error to fix it? I have absolutetly no clue where the problem could be located! The client doesn't get the email when places an order, I dont get confimration email, and emails from admin don't get sent under no circumstaces - though the system tells me that the email was sent.

 

Please, please, help! Thank you very much!

Posted

- Under Administration / Configuration / My Store, make sure that the "E-Mail Address", "E-Mail From" and "Send Extra Order Emails To" have the proper email addresses. Just for debuggings sake, you could make the email address as simple as possible by just listing one email address per setting with the structure of :

 

[email protected]

 

 

- Under Administration / Configuration / E-Mail Options, make sure that "E-Mail Transport Method" is set to sendmail or smtp according to your environment. smtp seems to work with my Windows host.

 

 

- Under Administration / Configuration / E-Mail Options, check if "Verify E-Mail Addresses Through DNS" is "true" or "false". In my environment, I get the following error when sending emails if it is set to "true".

 

Warning: Variable passed to each() is not an array or object in c:\hosting\...\catalog\includes\functions\compatibility.php on line 163

 

 

- Under Administration / Tools / Server Info, make sure that that the "PHP Core" settings: "SMTP", "smtp_port" and "sendmail_from are correct. If not, update them, modify .htaccess or have your host provider update the correct values. You can test the situation by manually overriding the php.ini values in code with the following, using your mail host and email address:

 

ini_set('SMTP', 'mail.server.type');

ini_set('sendmail_from', '[email protected]');"

 

 

To test sending email from the store, you can disable the following line from /catalog/contact_us.php (add // to the beginning of the line):

 

tep_redirect(tep_href_link(FILENAME_CONTACT_US, 'action=success'));

 

If, let's say, the smtp setting in php.ini is incorrect, you'll get an error like "warning: mail(): smtp server response: 501 5.5.4 invalid address in..." at the top of the page since you disabled the redirect.

Posted

Thank you so much for your reply! I found half of a solution. It seems it had to do indeed with the hack, but noy because of my codes, but because the host made some changes and affected my site. The solution is here.

 

But now the problem is that emails seem to be sent from an address like [email protected]

 

I'm tryng to figure that out too, and if anyone has a solution I know that some other people will be very pleased!

 

Thank you again!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...