简体   繁体   English

Laravel:使用gmail发送邮件时出错

[英]Laravel: Error in sending Mail using gmail

My system submits a form which contains data that will be sent through the controller: 我的系统提交了一个表单,其中包含将通过控制器发送的数据:

Mail::to( $requests->input('email') )->send( new ResultMail($requests));

This error shows up whenever I try to submit my form data. 每当我尝试提交表单数据时,都会显示此错误 I've double checked my user credentials in .env and they are correct. 我已经仔细检查了.env中的用户凭据,它们是正确的。

This problem is caused due to a bad configuration of SSL in your server. 造成此问题的原因是服务器中SSL的配置错误。 Make sure curl is installed on it and that .crt file exists. 确保在其上安装了curl并存在.crt文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM