歡迎光臨, 訪客. 請先 登入註冊一個帳號.
九月 23, 2024, 06:25:06 下午
19595 文章 在 3865 主題 由 4579 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  mail問題 « 上篇主題 下篇主題 »
頁: [1]
作者 主題: mail問題  (閱讀 10749 次)
rickw6609
新手見習
*
文章: 19


檢視個人資料
« 於: 一月 18, 2006, 10:57:57 上午 »

 傷心
不管我設定用SMTP或是PHP MAIL(),都是一樣失敗!
這台機器是
WINDOWS XP
APPSERV2.3.0

但是我校內另一台LINUX機器架設PHPBB就可以發信,所以SMTP SERVER(放在台北市教育中心)應該是可以連接上的才對!

這幾天看了討論區好多篇文章,我還是想不出我的解決方式,所以就來問問大家了
麻煩大家幫我想一想!謝謝!

錯誤訊息如下
Exception message: mail(): Failed to connect to mailserver at "smtp.tp.edu.tw" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set()
Error code: 2
-- Backtrace --
c:\appserv\www\lmblog\class\mail\phpmailer\class.phpmailer.php(442): mail
c:\appserv\www\lmblog\class\mail\phpmailer\class.phpmailer.php(373): phpmailer.mailsend
c:\appserv\www\lmblog\class\mail\emailservice.class.php(180): phpmailer.send
c:\appserv\www\lmblog\class\summary\action\dofinishregister.class.php(194): emailservice.sendmessage
c:\appserv\www\lmblog\class\summary\action\dofinishregister.class.php(153): dofinishregister.sendconfirmemail
c:\appserv\www\lmblog\class\summary\action\dofinishregister.class.php(45): dofinishregister.doneregister
c:\appserv\www\lmblog\class\controller\controller.class.php(305): dofinishregister.perform
c:\appserv\www\lmblog\summary.php(80): summarycontroller.process

已記錄
xsxiaobao
新手見習
*
文章: 8


檢視個人資料
« 回覆文章 #1 於: 一月 18, 2006, 10:58:00 下午 »


另一台机器能连接上说明网络应该没问题,但不一定这台服务器也肯定能连上。比如一些DNS设置,防火墙设置之类的。

在服务器上执行
telnet smtp.tp.edu.tw 25 先确定能连接上。
已記錄
3gboke
初級會員
**
文章: 81


檢視個人資料
« 回覆文章 #2 於: 一月 19, 2006, 04:08:38 上午 »

25端口可能被挡了. 或者SMTP无法使用
已記錄

偶不懂PHP程式,对LT的修改仅限于其模板的修改
rickw6609
新手見習
*
文章: 19


檢視個人資料
« 回覆文章 #3 於: 一月 19, 2006, 08:38:43 上午 »

LINUX那台可以telnet smtp.tp.edu.tw 25
但是XP這台沒辦法?
我在XP的防火牆中有將SMTP 25PORT設定為例外,是不是還有那邊要設定?
 傷心
已記錄
xsxiaobao
新手見習
*
文章: 8


檢視個人資料
« 回覆文章 #4 於: 一月 19, 2006, 11:21:23 上午 »

LINUX那台可以telnet smtp.tp.edu.tw 25
但是XP這台沒辦法?
我在XP的防火牆中有將SMTP 25PORT設定為例外,是不是還有那邊要設定?
 傷心

你可以这样进行尝试。
1、ping smtp.tp.edu.tw  检查能不能解析到IP,如果不可以,说明DNS有问题。
2、尝试关闭防火墙后测试telnet ,检查是不是防火墙设置问题。

已記錄
lss
我不是被~拉~~出來的,不要叫我大大!
總版主
超級會員
*****
文章: 1511



檢視個人資料 個人網站
« 回覆文章 #5 於: 一月 19, 2006, 11:34:16 上午 »

hi rickw6609:

你的 windows xp 機器有沒有 domain name ?若沒有,可能會被 smtp 拒絕連線。

另外, smtp.tp.edu.tw 應該會拒絕替貴校的機器 relay 吧。

難道貴校沒有自己的 smtp 主機?若有,用自己的 smtp 主機不是更方便?

lss
已記錄

沒找過 常見問題集或不知道 如何在 LifeType 中文開發論壇發問的人,恕不回答問題
頁: [1]
LifeType 中文開發論壇  |  支援  |  安裝與設定  |  mail問題 « 上篇主題 下篇主題 »
    前往: