I was having trouble sending mail in my localhost xampp using this tutorial. I just researched on this same topic at How to configure XAMPP to send mail from localhost?
I have tried both the links but mail function is not working instead of this every mail function is storing as notepad file inside the xampp/mailoutput folder. Whenever I tried to send a mail those things are storing as notepad files in the mailoutput folder inside the xampp folder.
I do not know what the problem was. I have changed my php.ini and sendmail.ini files in xampp.
php.ini as follows:
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = [email protected]
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
sendmail.ini as follows:
smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
[email protected]
auth_password=my-gmail-password
[email protected]
Can anybody help me to solve this issue?