Php Sendmail with xampp in windows server 2008

Posted: February 7, 2014 in Php

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_server=xxx.xx.xx.xxxx
smtp_port=25 (default)

auth_username=xxxxxx@yourdomainmail.com
auth_password=xxxxxx

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.

Comments

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s