Getting Xampp to Send E-Mail From the Localhost
In my web design work I often have a need to test email functionality. This is what I found to work for my setup.
Edit c:/xampplite/php/php.ini
search for the line that says:
sendmail_path = “\”C:\xampplite\sendmail\sendmail.exe\” -t” – in my setup it is line 1107
That command above actually has incorrect syntax. Create a line directly under that with this syntax.
sendmail_path = “C:\xampplite\sendmail\sendmail.exe -t”
Save the file.
Next you’ll need to open up the sendmail.ini file located at c:/xampplite/sendmail/sendmail.ini
Before the section at the bottom of the file starting with #Set a default account, create a new section. Enter in your smtp file server information from your ISP, or if you have access to a mail server for a hosting account you can use those settings.
Mine looks like this:
account CIOP
tls on
tls_certcheck off
host mail.ciop.com
from myemailaddress@ciop.com
auth on
user myemailaddress@ciop.com
password enterwhateveryourpasswordishere
Then make sure you change the default account to read
account detail: CIOP
The next step is to stop and restart Apache through the xammp control panel.
That should do it, at least it did for me.
