简体   繁体   中英

Magento doesn't send any mail order

When a customer makes an order, I don't receive the email of the order itself. It seems that Magento doesn't send the email because they aren't processed by the mail server (they don't arrive at all). I tried different SMTP extensions, the most "famous" seems "SMTP Schroeder", but any of them works at all. The mail server is Mandrill.

The Magento version in use is 1.7.0.2. If I send the email order in the backend from "sellings ---> orders ---> [customer] ---> send email again", it appears this string in the error.log of my server:

[Thu Nov 05 17:38:25 2015] [error] [client 37.59.14.152] client denied by server configuration: /var/www/vhosts/www.venditascacchi.it/httpdocs/app/etc/local.xml

Anyone can help me? I'm stuck with this problem since ages. Thanks in Advance!

[Thu Nov 05 17:38:25 2015] [error] [client 37.59.14.152] client denied by server configuration: /var/www/vhosts/www.venditascacchi.it/httpdocs/app/etc/local.xml

I wouldn't worry about that -- it's common and I've got sites with that error message sending emails just fine.

Here's what I would do to solve the issue:

  1. Check that your mail delivery is not disabled. You can find this in System->Configuration->System (near the bottom)->Mail Options. Make sure "Disabled Mail Settings" is not disabled.

  2. If that is set correctly, then I'd create a script to test that mail outside of Magento is being delivered:

    $to = 'nobody@example.com'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\\r\\n" . 'Reply-To: webmaster@example.com' . "\\r\\n" . 'X-Mailer: PHP/' . phpversion();

    mail($to, $subject, $message, $headers);

If that doesn't work, then I'd check with your host to see why your mail server isn't processing mail.

Also -- for those on a later version of Magento -- mail is sent on cron in some versions, so make sure your cron is running.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM