How to configure XAMPP to send mail from localhost using PHP ?
https://www.geeksforgeeks.org/how-to-configure-xampp-to-send-mail-from-localhost-using-php/
How to configure XAMPP to send mail from localhost using PHP ?
change smtp_server=mail.yourdomain.com to smtp_server=smtp.gmail.com change smtp_port to smtp_port=587 change smtp_ssl=auto to smtp_ssl=tlsuncomment ;error_logfile=error.log to error_logfile=error.log uncomment ;debug_logfile=debug.log to debug_logfile=debug.log write your gmail id in auth_username: auth_username=*****@gmail.com write your gmail assword in auth_password: auth_password=*****write your gmail id in force_sender: *****@gmail.com change hostname to hostname=localhost
comment SMTP=localhost by putting semicolon infront=>;SMTP=localhost comment smtp_port=25 by putting semicolon infront=>;smtp_port=25 comment sendmail_from= by putting semicolon infront=>;sendmail_from=specify path of file in sendmail_path to sendmail_path=C:\xampp\sendmail\sendmail.exe check if extension=php_openssl.dll is enabled=>If there is semicolon in front then un-comment it by removing that semicolon
Last updated


