smtp中继 - gmail - swiftmailer:预期响应码220,但得到了代码“"" [英] smtp relay - gmail - swiftmailer: Expected response code 220 but got code ""

查看:184
本文介绍了smtp中继 - gmail - swiftmailer:预期响应码220,但得到了代码“""的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



但是我得到了

我的swiftmailer类是一个smtp服务器。

预期的响应代码220,但得到代码,在\classes\Swift\Transport\AbstractSmtpTransport.php中显示消息。

这是什么意思?

解决方案

我认为这可能意味着您发送了一个空白行到smtp服务器。



确保您的命令中没有任何命令行。



您可以记录事务并粘贴日志的副本?



在这里查看有关记录
http://swiftmailer.org/docs/logger-plugin


I am using gmail as an smtp server for my swiftmailer class.

however I am getting

Expected response code 220 but got code "", with message "" in "\classes\Swift\Transport\AbstractSmtpTransport.php"

What does this mean?

解决方案

I think it probably means you sent a blank line to the smtp server.

Make sure none of your commands have line feeds in them.

Can you log the transaction and paste a copy of the log?

see here for details about logging http://swiftmailer.org/docs/logger-plugin

这篇关于smtp中继 - gmail - swiftmailer:预期响应码220,但得到了代码“""的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆