[問題]用flash直接寄e-mail

看板Flash作者 (卓彥)時間16年前 (2009/04/09 17:54), 編輯推噓2(2017)
留言19則, 4人參與, 最新討論串1/1
我想在flash中寄E-mail 不想跳出outlook視窗 已經依照Lee Brimelow所教http://www.gotoandlearn.com/play?id=50設定完成 flash程式碼: var senderLoad:LoadVars= new LoadVars(); var receiveLoad:LoadVars= new LoadVars(); sender.onRelease = function() senderLoad.name = name.text; senderLoad.sendAndLoad("http://mail.ee.nchu.edu.tw/~49664013/Untitled-1.php ",receiveLoad); } receiveLoad.onLoad=function(){ if(this.sentOK){ gotoAndStop("success"); } else { gotoAndStop("fail"); } } PHP程式碼 <?PHP $to="stephen771015@yahoo.com.tw"; $subject="test"; $message="name".$name; $headers="From:123"; mail($to,$subject,$message); echo"sentOK=".$sentOK; ?> 可是我點http://mail.ee.nchu.edu.tw/~49664013/Untitled-1.php時 出現 Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in f:\ftp\49664013\public_html\untitled-1.php on line 9 sentOK= 然後就傳送失敗了 我是把網站和php都丟在系上的空間裡,空間也支援php 下面是我的網站 http://mail.ee.nchu.edu.tw/~49664013/index2.html 請看我要報名 希望各位幫我解答 感激不盡 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.228.46

04/09 17:57, , 1F
因為你沒有smtp server
04/09 17:57, 1F

04/09 17:59, , 2F
那請問要如何解決呢
04/09 17:59, 2F

04/09 18:06, , 3F
系上寫他的伺服器是mail.ee.nchu.tw
04/09 18:06, 3F

04/09 19:13, , 4F
接下來的細節可以前往php版囉 :)
04/09 19:13, 4F

04/09 20:17, , 5F
可否給我一個大概的方向 讓我去研究 謝謝
04/09 20:17, 5F

04/09 23:26, , 6F
你可以從"Warning"那段文字開始,翻一下就有答案了
04/09 23:26, 6F

04/10 00:27, , 7F
可以去php版搜尋"信"或者"mail" 幾乎就會有答案了
04/10 00:27, 7F

04/10 13:28, , 8F
我找過了 他說要改php.ini 可是我是上傳到系上
04/10 13:28, 8F

04/10 13:28, , 9F
不能改系上的系統吧?
04/10 13:28, 9F

04/10 15:00, , 10F
setting in php.ini or use ini_set()
04/10 15:00, 10F

04/10 15:01, , 11F
錯誤訊息裡面都有寫..
04/10 15:01, 11F

04/12 21:02, , 12F
我將php程式碼加入ini_set("SMTP","mail.ee.nchu.edu.
04/12 21:02, 12F

04/12 21:03, , 13F
.tw");ini_set("sendmail_from","49664013@mail.ee.nc
04/12 21:03, 13F

04/12 21:03, , 14F
hu.edu.tw");
04/12 21:03, 14F

04/12 21:03, , 15F
ini_set("smtp_port", "25");
04/12 21:03, 15F

04/12 21:04, , 16F
Warning: mail(): SMTP server response: 553 sorry,
04/12 21:04, 16F

04/12 21:04, , 17F
you don't authenticate or the domain isn't in the
04/12 21:04, 17F

04/12 21:04, , 18F
list of allowed rcpthosts
04/12 21:04, 18F

04/12 21:06, , 19F
出現以上錯誤訊息,請問是什麼原因呢?
04/12 21:06, 19F
文章代碼(AID): #19tSNCsi (Flash)