Configure PHP mail() with GMAIL
Gmail
Enable access to less secure APP on yout account
Sendmail
Download sendmail
After downloading, extract to C:\php\lib\sendmail
Edit the file sendmail.ini with this values:
[sendmail] smtp_server=smtp.gmail.com smtp_port=465 smtp_ssl=ssl default_domain=localhost error_logfile=error.log debug_logfile=debug.log auth_username= enter your gmail account here auth_password= enter the password for that account here ; pop3_server= ; pop3_username= ; pop3_password= ; force_sender= ; force_recipient= hostname=localhost
PHP
Edit in file php.ini this values and uncomment this extensions:
[mail function]
...
sendmail_path = "C:\php\lib\sendmail\sendmail.exe -t -i"
...
extension=openssl extension=sockets
Apache
Uncomment the LoadModule SSL in file httpd.conf:
LoadModule ssl_module modules/mod_ssl.so
font

















