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

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

问题描述

我使用 gmail 作为我的 swiftmailer 类的 smtp 服务器.

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

不管怎样

预期的响应代码为 220,但得到代码",消息"在classesSwiftTransportAbstractSmtpTransport.php"中

Expected response code 220 but got code "", with message "" in "classesSwiftTransportAbstractSmtpTransport.php"

这是什么意思?

推荐答案

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

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?

有关日志记录的详细信息,请参见此处http://swiftmailer.org/docs/logger-plugin

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

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

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