Hi all,
I have Xampp on Windows Server 2012. I can`t send mail from php on address. I use corporate address and gmail account and there is no send mail.
I google it and find this tip:
in php.ini file find [mail function] and change
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = my-gmail-id@gmail.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
Now Open C:\xampp\sendmail\sendmail.ini. Replace all the existing code in sendmail.ini with following code
[sendmail]
smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
auth_username=my-gmail-id@gmail.com
auth_password=my-gmail-password
force_sender=my-gmail-id@gmail.com
Now you have done!! create php file with mail function and send mail from localhost.
I change everything and nothing. Simple no mail.
php.ini and sendmail.ini file you can find on test.cmd.in.rs
I just erase my mail and password.
Can you help me. Is there some new setting that I need to change.