2

I used the artisan command "php artisan make:auth" And Users authentication and registration is working fine but for some reason the App just can't send the reset passwords email.

I was able to properly configure the env file and even receive the message; "We have e-mailed your password reset link!", but the email never reaches the recipient.

This is my env file:

MAIL_DRIVER=log
MAIL_HOST=smtp.liberumratings.com
MAIL_PORT=587
MAIL_USERNAME=website@liberumratings.com
MAIL_PASSWORD=******
MAIL_ENCRYPTION=tls

I also tried the example below but a got this error:

(1/1) ErrorException

stream_socket_enable_crypto(): Peer certificate CN=*.locaweb.com.br' did not match expected CN=smtp.liberumratings.com'

MAIL_DRIVER=smtp
MAIL_HOST=smtp.liberumratings.com
MAIL_PORT=587
MAIL_USERNAME=website@liberumratings.com
MAIL_PASSWORD=******
MAIL_ENCRYPTION=tls

All my parameters are correct and I am able to send emails using the PHPMailer on the same server on another application.

1 Answers1

0

The encryption might be wrong. Are you using SSL?

Remove the tls and try agian. Also your answer can be found here Laravel SMTP driver with TLS encryption

Wim Pruiksma
  • 588
  • 5
  • 19