smtp relay - gmail - swiftmailer: Expected response code 220 but got code quot;quot;(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 但得到代码“"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:smtp 中继 - gmail - swiftmailer:预期响应代码 220 但得到代码“"


基础教程推荐
- Web 服务器如何处理请求? 2021-01-01
- php 7.4 在写入变量中的 Twig 问题 2022-01-01
- php中的foreach复选框POST 2021-01-01
- 如何在数学上评估像“2-1"这样的字符串?产生“1"? 2022-01-01
- 主题化 Drupal 7 的 Ubercart “/cart"页 2021-01-01
- PHPUnit 的 Selenium 2 文档到底在哪里? 2022-01-01
- php中的PDF导出 2022-01-01
- 将变量从树枝传递给 js 2022-01-01
- Yii2 - 在运行时设置邮件传输参数 2022-01-01
- 使用 scandir() 在目录中查找文件夹 (PHP) 2022-01-01