make sure to turn off the apache server first
The following configuration is recommended for the php.ini file:
[mail function]
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = youremail@gmail.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
The following configuration is recommended for the sendmail.ini file:
[sendmail]
error_logfile=error.log
debug_logfile=debug.log
auth_username=youremail@gmail.com
auth_password=gmailpasswordhere
force_sender=youremail.com
start the apache server
MAIL_MAILER=smtp
MAIL_HOST=smtp.gmail.com
MAIL_PORT=587
MAIL_USERNAME=youremail@gmail.com
MAIL_PASSWORD=passwordfromgmail
MAIL_ENCRYPTION=tls
MAIL_FROM_ADDRESS="youremail@gmail.com"
MAIL_FROM_NAME="${APP_NAME}"
Contributions, issues, and feature requests are welcome!
Give a ⭐️ if you like this project!