mercredi 24 novembre 2021

Forgot password system using Gmail & Laravel 8

I am using built in laravel 8 login system with its scaffolding have a project that has a forgot password for its login system which sends email from request. I'm trying to use gmail and xampp for sending the email . I am unable to send an email using the gmail account, So I tried configuring my .env and other configuration files in xampp. But I get the following error upon sending the request

Swift_TransportException Connection could not be established with host smtp.googlemail.com :stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages: error:1408F10B:SSL routines:ssl3_get_record:wrong version number

Could someone tell me why I'm getting this error and what should I do to get rid of this? Thanks a lot

<**env**>


MAIL_MAILER=smtp
MAIL_HOST=smtp.googlemail.com
MAIL_PORT=587
MAIL_USERNAME=********@gmail.com
MAIL_PASSWORD=*********
MAIL_ENCRYPTION=ssl
MAIL_FROM_ADDRESS=********@gmail.com
MAIL_FROM_NAME="${APP_NAME}"



<** php.ini**>
inside xampp\php\php.ini under the function  under the tab [mail function]

SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = ******@gmail.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"


<**sendmail.ini**>
inside xampp\mail\sendmail.ini under the function [sendmail]


smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
auth_username=*******@gmail.com
auth_password=******
force_sender=*******@gmail.com



Aucun commentaire:

Enregistrer un commentaire