简体   繁体   English

Magento 不发送任何邮购

[英]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). Magento 似乎没有发送电子邮件,因为它们没有被邮件服务器处理(它们根本没有到达)。 I tried different SMTP extensions, the most "famous" seems "SMTP Schroeder", but any of them works at all.我尝试了不同的 SMTP 扩展,最“有名”的似乎是“SMTP Schroeder”,但它们中的任何一个都有效。 The mail server is Mandrill.邮件服务器是 Mandrill。

The Magento version in use is 1.7.0.2.使用的 Magento 版本是 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:如果我在后端从“销售 ---> 订单 ---> [客户] ---> 再次发送电子邮件”发送电子邮件订单,它会在我的服务器的 error.log 中显示此字符串:

[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 [2015 年 11 月 5 日星期四 17:38:25] [错误] [客户端 37.59.14.152] 客户端被服务器配置拒绝:/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 [2015 年 11 月 5 日星期四 17:38:25] [错误] [客户端 37.59.14.152] 客户端被服务器配置拒绝:/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:如果设置正确,那么我将创建一个脚本来测试 Magento 之外的邮件是否正在传递:

    $to = 'nobody@example.com'; $to = 'nobody@example.com'; $subject = 'the subject'; $subject = '主题'; $message = 'hello'; $message = '你好'; $headers = 'From: webmaster@example.com' . $headers = '来自:webmaster@example.com'。 "\\r\\n" . "\\r\\n" 。 'Reply-To: webmaster@example.com' . '回复:webmaster@example.com'。 "\\r\\n" . "\\r\\n" 。 'X-Mailer: PHP/' . 'X-Mailer: PHP/' 。 phpversion(); php版本();

    mail($to, $subject, $message, $headers);邮件($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.另外——对于那些使用更高版本 Magento 的人——邮件在某些版本中是通过 cron 发送的,所以请确保你的 cron 正在运行。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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