【问题标题】:[Unable to find the socket transport "TLS" - did you forget to enable it when you configured PHP? #32673][Unable to find the socket transport "TLS" - did you forget to enable it when you configured PHP? #32673]
【发布时间】:2016-08-15 01:52:00
【问题描述】:

我在通过 Zoho SMTP 服务器发送电子邮件时遇到以下消息。

[无法找到套接字传输“TLS” - 您在配置 PHP 时是否忘记启用它? #32673]

我尝试在我的 PHP 安装中寻找 opennssl 支持,似乎一切正常。

我的phpInfo() 说已注册 TLS 流并启用了 openssl 扩展。

我在 Digital Ocean 上的 Ubuntu 服务器 14.04 和 PHP 5.6.20 上使用 Laravel 5.1。 我用谷歌搜索了一个解决方案,但我刚刚找到了适用于 Windows 操作系统的答案。

【问题讨论】:

  • 已解决。我在 .env 文件中将选项值 MAIL_ENCRYPTION=TLS 更改为小写,一切正常。

标签: php sockets laravel-5.1 ubuntu-14.04 swiftmailer


【解决方案1】:

已解决。我将 .env 文件中的选项值 MAIL_ENCRYPTION=TLS 更改为小写,一切正常。

【讨论】:

  • 它花了我几个小时来找到它!使用 Swiftmailer:“无法找到套接字传输“TLS” - 你在配置 PHP 时是否忘记启用它?#38365528” - 你必须写“tls”小写...
猜你喜欢
  • 2016-09-15
  • 2022-12-27
  • 2022-12-02
  • 2020-09-06
  • 2022-12-02
  • 2022-12-26
  • 2022-12-02
  • 2021-03-13
  • 2022-12-28
相关资源
最近更新 更多