看板 Flash 關於我們 聯絡資訊
我想在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
pm2001:因為你沒有smtp server 04/09 17:57
stephen7710:那請問要如何解決呢 04/09 17:59
stephen7710:系上寫他的伺服器是mail.ee.nchu.tw 04/09 18:06
aquarianboy:接下來的細節可以前往php版囉 :) 04/09 19:13
stephen7710:可否給我一個大概的方向 讓我去研究 謝謝 04/09 20:17
aquarianboy:你可以從"Warning"那段文字開始,翻一下就有答案了 04/09 23:26
awashharp:可以去php版搜尋"信"或者"mail" 幾乎就會有答案了 04/10 00:27
stephen7710:我找過了 他說要改php.ini 可是我是上傳到系上 04/10 13:28
stephen7710:不能改系上的系統吧? 04/10 13:28
aquarianboy:setting in php.ini or use ini_set() 04/10 15:00
aquarianboy:錯誤訊息裡面都有寫.. 04/10 15:01
stephen7710:我將php程式碼加入ini_set("SMTP","mail.ee.nchu.edu. 04/12 21:02
stephen7710:.tw");ini_set("sendmail_from","49664013@mail.ee.nc 04/12 21:03
stephen7710:hu.edu.tw"); 04/12 21:03
stephen7710:ini_set("smtp_port", "25"); 04/12 21:03
stephen7710:Warning: mail(): SMTP server response: 553 sorry, 04/12 21:04
stephen7710:you don't authenticate or the domain isn't in the 04/12 21:04
stephen7710:list of allowed rcpthosts 04/12 21:04
stephen7710:出現以上錯誤訊息,請問是什麼原因呢? 04/12 21:06