[英]How solve this error ( mail(): SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. i2sm7399406pjt.19 - gsmtp )
I has this error when try register尝试注册时出现此错误
mail(): SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. k1sm2231247pjj.54 - gsmtp
my env is我的环境是
MAIL_DRIVER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=465
MAIL_USERNAME=mymail@gmail.com
MAIL_PASSWORD=mypassword
MAIL_ENCRYPTION=ssl
I dont know why this happen can someone explain me我不知道为什么会发生这种情况有人可以解释我吗
You're working with SSL
so, check your PHP
installation to make sure you can use that protocol, check if your PHP
supports it.您正在使用
SSL
因此请检查您的PHP
安装以确保您可以使用该协议,检查您的PHP
支持它。
If it does, try changing your .env
, changing the line MAIL_HOST=smtp.googlemail.com
to MAIL_HOST=smtp.gmail.com
.如果是,请尝试更改您的
.env
,将MAIL_HOST=smtp.googlemail.com
行更改为MAIL_HOST=smtp.gmail.com
。
If this doesn't solve your problem, try modifying SMTP=ssl
in your php.ini
to SMTP=ssl://smtp.gmail.com
.如果这没有解决您的问题,尝试修改
SMTP=ssl
在你php.ini
到SMTP=ssl://smtp.gmail.com
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.