首页 > 解决方案 > 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上也有同样的错误

标签: symfonysslmailer

解决方案


尝试为第三方启用 gmail SMTP。


推荐阅读