简体   繁体   English

Moodle新用户电子邮件确认错误-尝试向您发送电子邮件,但失败

[英]Moodle New User Email Confirmation Error - Tried to send you an email but failed

Whenever a new user tries to create a new account, they get this message 每当新用户尝试创建新帐户时,他们都会收到此消息

Tried to send you an email but failed! 试图向您发送电子邮件,但失败了!

  • I tried setting up an email and using the smtp settings in Site Administration -> Message output -> Email and that did not work. 我尝试设置电子邮件并使用“站点管理”->“消息输出”->“电子邮件”中的smtp设置,但该方法不起作用。
  • I called my Host company (inmotion hosting) and they verified that my settings were correct. 我给我的托管公司打电话(动机托管),他们确认我的设置正确。
  • I tried just leaving the settings blank in email so that the phpmailer would send the emails, but that is not working and I still get the same message. 我尝试将电子邮件中的设置保留为空白,以便phpmailer发送电子邮件,但这不起作用,并且我仍然收到相同的消息。
  • I have searched all overand I cannot find any helpful information on why this is happening, but I find A LOT of people who are having this issue. 我已经进行了全面搜索,但是找不到关于为什么会发生这种情况的任何有用信息,但是我发现有很多人遇到此问题。

This has turned into a MAJOR show stopper and I am wondering what avenues I have to troubleshoot this. 这已经变成一个主要的演出塞子,我想知道必须使用什么途径来解决这个问题。 Does anyone have any information on how this is fixed? 有人知道如何解决此问题吗?

Thanks in advance. 提前致谢。

It might be missing a "from" email - have you got a support email set up? 可能缺少“发件人”电子邮件-您是否设置了支持电子邮件?

/admin/settings.php?section=supportcontact

Or go to Site Administration > Server -> Support contact 或转到站点管理>服务器->支持联系人

I've had a similar issue. 我有一个类似的问题。 It works fine for the first three users created (in quick succession) but then fails for a few minutes. 对于创建的前三个用户(快速连续),它工作正常,但随后几分钟失败。 Enabling debugging (Site Admin -> Development -> Debugging page) showed that this was due to timeouts: 启用调试(Site Admin-> Development-> Debugging页面)显示这是由于超时导致的:

Debug info: 
Error code: auth_emailnoemail
Stack trace:
line 463 of /lib/setuplib.php: moodle_exception thrown
line 106 of /auth/email/auth.php: call to print_error()
line 70 of /login/signup.php: call to auth_plugin_email->user_signup()
Output buffer: profile_field_PC<pre> SMTP -> ERROR: Failed to connect to server: Connection timed out (110)SMTP connect() failed. </pre>

This appears to be an anti-spam "feature" of the Amazon SES service we were using, which we will need to get around. 这似乎是我们正在使用的Amazon SES服务的反垃圾邮件“功能”,我们​​将需要解决它。

I know this is an old post but I will add my solution and give many thanks to Russell for that part of it. 我知道这是一篇过时的文章,但是我会添加我的解决方案,并为此多谢Russell。 This site had been moved over to Bluehost and come to discover that client did not set up an email account for Admin User - so in addition to checking that there is an email in the Admin settings, also verify that that email address exists and is reachable! 该站点已移至Bluehost,发现客户端未为Admin User设置电子邮件帐户-因此,除了检查Admin设置中是否存在电子邮件之外,还要验证该电子邮件地址是否存在并且可以访问!

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

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