symfony - symfony mailer 无法发送邮件
问题描述
我尝试使用 mailer 发送电子邮件,但尝试发送电子邮件时出现错误:
the error is :Connection could not be established with host "ssl://smtp.gmail.com:465": stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed.
我在ubuntu上也有同样的错误
解决方案
尝试为第三方启用 gmail SMTP。
推荐阅读
- android - 升级到 Android Gradle Plugin 4.2.0-beta03 后出现新的 Gradle 错误
- flutter - 来自 Stream 的参数
- 未在 MainPage 中收到
- firebase - 如何使用firebase和flutter with流实现分页并在streambuilder中使用它
- javascript - 将值数组列移动到其他数组列
- javascript - 将参数传递给 jQuery“加载”
- javascript - 路由更改时未路由的 React 组件不更新
- npm - 如何使用 API 密钥将包发布到 npm?
- javascript - 为什么 Uint8Array.toString('hex') 不返回十六进制?
- python - RuntimeError:堆栈期望每个张量大小相等
- javascript - React - 如何将 API 数据从一个组件传递到另一个 js 文件中的另一个组件?