YNDK+LeslieHomepage 歡迎來到演藝特工暨哥哥網站




Enabling sendmail on XAMPP v1.7.x

24 11月 2009
Posted by Administrator

匿名者's 的頭像

XAMPP comes with sendmail, version 1.7.1 use fake sendmail, and version 1.7.2 use msmtp. In order to send email from PHP-based programs, you can enable sendmail using the following methods:

A. for version 1.7.1 - fake sendmail

1. edit c:\xampp\sendmail\sendmail.ini, modify the settings for your ISP

smtp_server=smtp.yourisp.com
smtp_port=25
auth_username=yourispusername
auth_password=yourisppassword

2. edit c:\xampp\php\php.ini, uncomment the following line if not already:

sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"

B. for version 1.7.2 - msmtp

1. edit c:\xampp\sendmail\sendmail.ini, add an account settings for your ISP

# Settings for using your ISP
account YourISP
tls on
tls_starttls off
tls_certcheck off
host smtp.yourisp.com
from username@yourisp.com
auth on
user username@yourisp.com
password yourisppassword


Here is an example for Gmail

# Settings for using Gmail
account Gmail
tls on
tls_starttls off
tls_certcheck off
host smtp.gmail.com
from username@gmail.com
auth on
user username@gmail.com
password yourgmailpassword


2. at the end of the file, change the "account default" setting to point to your newly added ISP

# Set a default account
account default : Gmail

3. edit c:\xampp\php\php.ini, uncomment the following line if not already:

sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"


Tags:



Custom Search