參考資料:
Taiwan.CNET.com - 網頁建構 - 用 PHP 傳送 email
http://taiwan.cnet.com/builder/programming/story/0,2000027293,20020741-2,00.htm
更改php.ini 檔的內容(xampp下要改apache\php.ini,不是 php\php.ini)
Windows 下要設定 SMTP 和 sendmail_from(預設寄件者,通常會被PHP應用程式之設定值取代。)
Unix-like 下要設定 sendmail_path
php.ini 對應片段的程式碼
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 25
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path = "C:\xampp\sendmail\sendmail.exe -t"
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
2007年10月4日 星期四
PHP之SMTP設定
張貼者:
PcGrek
於
晚上10:54
標籤: PHP, Programming Language
訂閱:
張貼留言 (Atom)
沒有留言:
張貼留言