Home  >  Article  >  PHP Framework  >  About the solution to configure QQ to send emails in Laravel5.1

About the solution to configure QQ to send emails in Laravel5.1

藏色散人
藏色散人forward
2020-03-24 09:00:363584browse

When using the Auth:ResetsPasswords function of Laravel5 to retrieve the password, the error is as follows:

Failed to authenticate on SMTP server with username XXX@qq.com 
using 1 possible authenticators**

Later I found out that it was due to configuration, because I am using QQ mailbox, and I need to configure and enable smtp settings in QQ mailbox

Recommended: laravel tutorial

1. Open the POP3/SMTP service in [Settings]->[Account] in QQ mailbox

About the solution to configure QQ to send emails in Laravel5.1

2. Modify the .env file to configure the mail information in Laravel

About the solution to configure QQ to send emails in Laravel5.1

3. Configure the email sender name and address in /config/mail.php

About the solution to configure QQ to send emails in Laravel5.1

4. Then try to click Password Reset

About the solution to configure QQ to send emails in Laravel5.1

OK

The above is the detailed content of About the solution to configure QQ to send emails in Laravel5.1. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:segmentfault.com. If there is any infringement, please contact admin@php.cn delete