SwiftMailer如何用Google配置它?

时间:2018-10-18 20:00:06

标签: symfony

我已经安装了sendmail,并且可以与gmail一起使用,所以这不是问题。 在快速邮件程序配置yaml中,它看起来像:

swiftmailer:
  transport:  smtp
  encryption: tls
  auth_mode:  login
  host:       smtp.gmail.com
  username:   (this is my email)
  password:   (this is my pass)
  port:       587
.env中的

:     MAILER_URL = gmail://用户名:password @ localhost

我收到此错误:

Warning: stream_socket_enable_crypto(): SSL operation failed with code 1. 
OpenSSL Error messages:
error:1416F086:SSL routines:tls_process_server_certificate:certificate verify failed

我不知道,因为如果我使用邮件功能就可以了。

0 个答案:

没有答案