2014年3月19日 星期三

Appserv 發信設定

Appserv 原本沒有發信功能,需靠sendmail 才可發信,準備步驟:

1.下載 "Fake sendmail for windows" http://glob.com.au/sendmail/ 來發送郵件


2.下載完畢 放在C:\sendmail\



3.設定sendmail\sendmail.ini

smtp_server=mail.abc.com.tw
smtp_port=25
auth_username=noreply@abc.com.twauth
password=******

4.將php.ini 的 extension=php_openssl.dll 打開

5.設定 php.ini (這裡應該不用再設一次,以防萬一)

[mail function]
; For Win32 only.
SMTP = mail.abc.com.tw

smtp_port = 25
auth_username = noreply@abc.com.tw

auth_password =******
sendmail_from = 123@123.com.tw


6.設定 sendmail_path = "C:\sendmail\sendmail.exe -t"


7.重新啟動 apache


p.s.防火牆的 25 port 要放行,防毒軟體若有阻擋發信或port規則記得要調整

沒有留言:

張貼留言