简体   繁体   English

在moodle 3.0上发送电子邮件的SMTP错误

[英]SMTP error with sending Emails on moodle 3.0

I have the same Email configuration (in messages output) for 2 Moodle installation on the same server: 我在同一服务器上安装2 Moodle具有相同的Email配置(在消息输出中):

  1. version 2.9.1+ 版本2.9.1+
  2. version 3.0 版本3.0

I am using Exchange server as SMTP host server. 我将Exchange服务器用作SMTP主机服务器。

On the 2.9 the emails are working fine but on the 3.0 I am having an error: 在2.9上,电子邮件工作正常,但在3.0上,我出现了错误:

    250-SIZE 37748736
                                  250-PIPELINING
                                  250-DSN
                                  250-ENHANCEDSTATUSCODES
                                  250-STARTTLS
                                  250-X-ANONYMOUSTLS
                                  250-AUTH NTLM LOGIN
                                  250-X-EXPS GSSAPI NTLM
                                  250-8BITMIME
                                  250-BINARYMIME
                                  250-CHUNKING
                                  250 XRDST
 2015-12-22 09:47:25    CLIENT -> SERVER: STARTTLS
 2015-12-22 09:47:25    SMTP -> get_lines(): $data is ""
 2015-12-22 09:47:25    SMTP -> get_lines(): $str is  "220 2.0.0 SMTP server     ready                         
 2015-12-22 09:47:25    SERVER -> CLIENT: 220 2.0.0 SMTP server ready
 2015-12-22 09:47:26    SMTP Error: Could not connect to SMTP host.
 2015-12-22 09:47:26    CLIENT -> SERVER: QUIT
 2015-12-22 09:47:26    SMTP -> get_lines(): $data is ""
 2015-12-22 09:47:26    SMTP -> get_lines(): $str is  ""
 2015-12-22 09:47:26    SERVER -> CLIENT:
 2015-12-22 09:47:26    SMTP ERROR: QUIT command failed:
 2015-12-22 09:47:26    Connection: closed
 2015-12-22 09:47:26    SMTP connect() failed.     https://github.com/PHPMailer/PHPMailer/wiki/Troubleshooting

Note that I am using the exact same configuration except that in 2.9 you don't have the option to choose between (LOGIN, PLAIN, NTLM) but it is exists in 3.0 and I have tried them all. 请注意,我使用的是完全相同的配置,只是在2.9中您没有选择(登录,普通,NTLM)的选项,但是它在3.0中存在并且我已经尝试了所有配置。

Does anybody has a clue what is going on? 有人知道发生了什么吗? is it a bug or ma I missing anything, it has been 2 days and it is becoming frustrating. 是bug还是我错过了任何东西,已经有2天了,变得越来越令人沮丧。

Though this is an old discussion, for community reference the issue has been tracked in MDL-52637 and fixed in v3.0.3. 尽管这是一个古老的讨论,但已在MDL-52637中跟踪了该问题,并已在v3.0.3中修复,以供社区参考。
Details at https://tracker.moodle.org/browse/MDL-52637 . 有关详细信息, 请参见https://tracker.moodle.org/browse/MDL-52637

HTH, HTH,
Matteo 马泰奥

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

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