用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)
用XAMPP的sendmail寄信(windows)
關於作者 多力哥
用XAMPP的sendmail寄信(windows)
影像創作攝影師/網頁動畫設計師/系統網路工程師/水草研究生
景文科大畢業後,我成為一名網站動畫設計師,並副修MIS電腦資訊管理。2004年,我開始接觸單眼相機,並在2008年正式成為一名接案攝影師,目前使用Canon系統進行拍攝。2016年,我愛上了美麗的水草缸,這讓我的生活多了另一層次的放鬆。每天在電腦前修圖時,能欣賞紅吱吱、綠油油的水草,彷彿多了一份平靜與愉悅。攝影與水草讓我的生活充滿了藝術與自然的交融。
連絡信箱:hello@hahasmile.com (歡迎合作提案)
DORIGO IMAGE 攝影工作室:https://dorigo-image.com
如果你喜歡我的內容,可以用行動贊助我一杯咖啡☕,支持我持續創作,也讓這個網站可以繼續營運下去喔!

若您喜歡這篇文章,歡迎按讚分享喔!
0 回復

發表評論

想要留言嗎?
歡迎歡迎!

發佈留言

發佈留言必須填寫的電子郵件地址不會公開。 必填欄位標示為 *