PHP Web Application Developer

Php Sendmail with xampp in windows server 2008

Sending mail using PHP in windows server quite difficult and sometimes need extra works..So here is the setup that works with Apache, Xampp, PHP in my windows server 2008.

1. Setup sendmail.ini
In xampp, there is folder sendmail. Open file sendmail.ini and configure this value:

smtp_port=25 (default)

2. Then setup php.ini in xampp/php folder

SMTP = xxx.xx.xx.xxxx
smtp_port = 25 (default)
sendmail_path = “\”C:\xampp\sendmail\sendmail.exe\” -t”      //make sure you check your path is correct

3. Ok Done. Restart your webserver.

You can use phpmailer to send email from your application.

View original post


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s