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:
In xampp, there is folder sendmail. Open file sendmail.ini and configure this value:
smtp_server=xxx.xx.xx.xxxx
smtp_port=25 (default)
smtp_port=25 (default)
auth_username=xxxxxx@yourdomainmail.com
auth_password=xxxxxx
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
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.
No comments:
Post a Comment