用XAMPP的sendmail寄信(windows)

用XAMPP的sendmail寄信(windows)

要用XAMPP來寄信步驟非常的簡單!

1.修改 php.ini 檔

; XAMPP: Comment out this if you want to work with fakemail for forwarding to your mailbox (sendmail.exe in the sendmail folder)
sendmail_path = "\"E:\xampp\sendmail\sendmail.exe\" -t"

; Log all mail() calls including the full path of the script, line #, to address and headers
mail.log = "E:\xampp\apache\logs\php_mail.log"

2.修改 sendmail.ini 檔(\xampp\sendmail)

smtp_server=mail.yourname.com

smtp_port=25

smtp_ssl=auto

default_domain=yourname.com

auth_username=xxx
auth_password=xxx

force_sender=smtp@yourname.com

 

修改完後,重新啟動 Apache 即可。

與大家分享...
用XAMPP的sendmail寄信(windows)
Facebook
0用XAMPP的sendmail寄信(windows)
Google+
0用XAMPP的sendmail寄信(windows)
Pinterest
0用XAMPP的sendmail寄信(windows)
email
0 回復

發表評論

想要留言嗎?
歡迎歡迎!

發表迴響

你的電子郵件位址並不會被公開。 必要欄位標記為 *