[問題]用flash直接寄e-mail
我想在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
04/09 17:57, 1F
→
04/09 17:59, , 2F
04/09 17:59, 2F
→
04/09 18:06, , 3F
04/09 18:06, 3F
→
04/09 19:13, , 4F
04/09 19:13, 4F
→
04/09 20:17, , 5F
04/09 20:17, 5F
→
04/09 23:26, , 6F
04/09 23:26, 6F
推
04/10 00:27, , 7F
04/10 00:27, 7F
→
04/10 13:28, , 8F
04/10 13:28, 8F
→
04/10 13:28, , 9F
04/10 13:28, 9F
→
04/10 15:00, , 10F
04/10 15:00, 10F
→
04/10 15:01, , 11F
04/10 15:01, 11F
→
04/12 21:02, , 12F
04/12 21:02, 12F
→
04/12 21:03, , 13F
04/12 21:03, 13F
→
04/12 21:03, , 14F
04/12 21:03, 14F
→
04/12 21:03, , 15F
04/12 21:03, 15F
→
04/12 21:04, , 16F
04/12 21:04, 16F
→
04/12 21:04, , 17F
04/12 21:04, 17F
→
04/12 21:04, , 18F
04/12 21:04, 18F
→
04/12 21:06, , 19F
04/12 21:06, 19F