Mail error in laravel

1

When trying to use the default routes of laravel I get this error to send the mail to restart my password:

  

Swift_TransportException in AbstractSmtpTransport.php line 383: Expected response code 250 but got code "530", with message "530 5.7.1 Authentication required"

Before, this message came to me:

  

error: 14090086: ssl routines: ssl3_get_server_certificate: certificate verify failed

I do not know how it was resolved either. some possible solution ..

    
asked by user22468 09.11.2016 в 16:13
source

2 answers

0

Can you show the part of the .env file that refers to the mail?

If you use gmail, it should be something like this:

MAIL_DRIVER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
[email protected]
MAIL_PASSWORD=MiContraseña
    
answered by 16.11.2016 в 10:45
0

Try this configuration, it is written for codeigniter but only uses the values.

$config['protocol'] = 'smtp'; 
$config['smtp_host'] = 'ssl://smtp.gmail.com'; 
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = 'rey';
$config['smtp_port'] = '465'; 
$config['smtp_timeout'] = '10'; 
$config['wordwrap'] = TRUE;
$config['wrapchars'] = 76; 
$config['mailtype'] = 'html';
    
answered by 15.12.2017 в 20:23