Skip to content

Instantly share code, notes, and snippets.

@mlbd
Last active May 21, 2024 15:46
Show Gist options
  • Save mlbd/fc3b6e9763aa2e84e9967f5f354cc1f2 to your computer and use it in GitHub Desktop.
Save mlbd/fc3b6e9763aa2e84e9967f5f354cc1f2 to your computer and use it in GitHub Desktop.
----------------------------------------------------------------------
// C:\xampp\php\php.ini
----------------------------------------------------------------------
[mail function]
smtp_port=587
sendmail_from = your-gmail@gmail.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
----------------------------------------------------------------------
// C:\xampp\sendmail\sendmail.ini
----------------------------------------------------------------------
smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
auth_username=your-gmail@gmail.com
auth_password=your-gmail-password
force_sender=your-gmail@gmail.com
If it still not send mail then config your gmail account following instruction.
https://support.google.com/accounts/answer/6010255
DONE and restert Apache and enjoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment