简体   繁体   English

如何解决此错误( mail(): SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. i2sm7399406pjt.19 - gsmtp )

[英]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 php.ini is我的 php.ini 是在此处输入图片说明

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.iniSMTP=ssl://smtp.gmail.com

暂无
暂无

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

相关问题 SMTP 服务器响应:530 5.7.0 必须首先发出 STARTTLS 命令。 Windows 7的 - SMTP server response: 530 5.7.0 Must issue a STARTTLS command first. windows 7 SMTP 服务器响应:530 5.7.0 必须先发出 STARTTLS 命令 - SMTP server response: 530 5.7.0 Must issue a STARTTLS command first php mail函数错误 - >警告:mail()[function.mail]:SMTP服务器响应:530 5.7.0必须先发出STARTTLS命令 - php mail function error -> Warning: mail() [function.mail]: SMTP server response: 530 5.7.0 Must issue a STARTTLS command first WampServer:警告:mail():SMTP 服务器响应:530 5.7.0 必须先发出 STARTTLS 命令 - WampServer: Warning: mail(): SMTP server response: 530 5.7.0 Must issue a STARTTLS command first SMTP 错误:MAIL FROM 命令失败:530 5.7.0 使用 PHPMailer 时必须先发出 STARTTLS 命令 - SMTP ERROR: MAIL FROM command failed: 530 5.7.0 Must issue a STARTTLS command first when using PHPMailer SMTP->错误:服务器未接受AUTH:530 5.7.0必须首先发出STARTTLS命令 - SMTP -> ERROR: AUTH not accepted from server: 530 5.7.0 Must issue a STARTTLS command first PHPMailer:不接受来自服务器的MAIL:530 5.7.0必须首先发出STARTTLS命令 - PHPMailer : MAIL not accepted from server: 530 5.7.0 Must issue a STARTTLS command first 无法发送 AUTH LOGIN 命令。 错误:530 5.7.0 必须先发出 STARTTLS 命令 - Failed to send AUTH LOGIN command. Error: 530 5.7.0 Must issue a STARTTLS command first Symfony SwiftmailerBundle:Gmail 发送“530 5.7.0 必须先发出 STARTTLS 命令” - Symfony SwiftmailerBundle: Gmail sends “530 5.7.0 Must issue a STARTTLS command first” PHP SMTP 错误:SMTP 服务器响应:530 5.7.0 - PHP SMTP ERROR: SMTP server response: 530 5.7.0
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM