1 頁 (共 1 頁)

[註冊問題]在VH的主機的smtp.php發生錯誤

發表於 : 2004-07-01 12:14
54yuwei
架站環境: Linux
空間的資料: http://www.netfirms.com
網址: http://www.twfuture.netfirms.com/tw/nfphpbb/index.php
phpBB 版本: phpBB 2.0.6
這是VH主機 ......

我找過所有有關註冊的問題
像這一天談到的: http://phpbb-tw.net/phpbb/viewtopic.php ... t=smtp.php

後台若是要設定跟他一樣的話,必須要在 php.ini設定為【文】會員所指的

代碼: 選擇全部

php.ini - 設定 

[mail function] 
; For Win32 only. 
SMTP = 輸入外寄郵件伺服器(必須對應下方) 

; For Win32 only. 
sendmail_from = 輸入郵件地址(必須對應上方) 

; For Unix only. You may supply arguments as well (default: "sendmail -t -i"). 
;sendmail_path = Win使用者請留空

基本上我試過兩種方式:

第1種:後台的SMTP設定為跟22183389一樣!(但是後果是,可以建立帳號,但無法收確認信

第2種方式是有設定帳號密碼的,但是註冊時,會發生以下的錯誤

代碼: 選擇全部

Warning: fsockopen(): unable to connect to so-net.net.tw:25 in 

/mnt/web_h/d18/s16/b01f8aab/www/tw/nfphpbb/includes/smtp.php on line 109

Warning: Cannot modify header information - headers already sent by (output started at 

/mnt/web_h/d18/s16/b01f8aab/www/tw/nfphpbb/includes/smtp.php:109) in 

/mnt/web_h/d18/s16/b01f8aab/www/tw/nfphpbb/includes/page_header.php on line 511

Warning: Cannot modify header information - headers already sent by (output started at 

/mnt/web_h/d18/s16/b01f8aab/www/tw/nfphpbb/includes/smtp.php:109) in 

/mnt/web_h/d18/s16/b01f8aab/www/tw/nfphpbb/includes/page_header.php on line 513

Warning: Cannot modify header information - headers already sent by (output started at 

/mnt/web_h/d18/s16/b01f8aab/www/tw/nfphpbb/includes/smtp.php:109) in 

/mnt/web_h/d18/s16/b01f8aab/www/tw/nfphpbb/includes/page_header.php on line 514


Could not connect to smtp host : 13 : Permission denied

DEBUG MODE
Line : 111
File : /mnt/web_h/d18/s16/b01f8aab/www/tw/nfphpbb/includes/smtp.php

發表於 : 2004-07-01 12:33
messagebox
第1.
會使用php.ini的設定去送信~~~

第2.
新力索尼不需要做SMTP認證~~~
Warning: fsockopen(): unable to connect to so-net.net.tw:25 in 此訊息為\r
無法連接到so-net.net.tw的連接埠25

你有說到你是使用VH~~
除了你的虛擬主機商是使用新力索尼的線路以外~~~
你的設定一定會失敗~~

我比較建議你向主機商說~~~叫他把php.ini的sendmail路徑設好~~~
然後使用php.ini來送信就好~~~(也就是說"使用 SMTP 伺服器傳送電子郵件" 選否)

發表於 : 2004-07-02 10:10
54yuwei
問題 一樣存在,因為我還是自己架組MailSever 來跑好了,因為我用我自己架的就可了 >"< ... 不過 messagebox 還是很高興你的教學 ~ 多謝囉 ^^