[請益] 用flash直接寄e-mail

看板PHP作者 (卓彥)時間16年前 (2009/04/09 19:24), 編輯推噓0(001)
留言1則, 1人參與, 最新討論串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 請看我要報名 問題1:爬文說要修改php.ini可是我是上傳到系上空間,要怎麼辦? 問題2:除了這個方法以外還有別的方法可以達成我的目的嗎? 問題3:如果我向學校申請一個mail server是不是就可以解決問題? 希望各位幫我解答 感激不盡 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.120.228.46

04/10 13:32, , 1F
拜託各位幫我看看
04/10 13:32, 1F
文章代碼(AID): #19tTh_Rb (PHP)
文章代碼(AID): #19tTh_Rb (PHP)