作者stephen7710 (卓彦)
看板Flash
标题[问题]用flash直接寄e-mail
时间Thu Apr 9 17:54:17 2009
我想在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="
[email protected]";
$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
1F:推 pm2001:因为你没有smtp server 04/09 17:57
2F:→ stephen7710:那请问要如何解决呢 04/09 17:59
3F:→ stephen7710:系上写他的伺服器是mail.ee.nchu.tw 04/09 18:06
4F:→ aquarianboy:接下来的细节可以前往php版罗 :) 04/09 19:13
5F:→ stephen7710:可否给我一个大概的方向 让我去研究 谢谢 04/09 20:17
6F:→ aquarianboy:你可以从"Warning"那段文字开始,翻一下就有答案了 04/09 23:26
7F:推 awashharp:可以去php版搜寻"信"或者"mail" 几乎就会有答案了 04/10 00:27
8F:→ stephen7710:我找过了 他说要改php.ini 可是我是上传到系上 04/10 13:28
9F:→ stephen7710:不能改系上的系统吧? 04/10 13:28
10F:→ aquarianboy:setting in php.ini or use ini_set() 04/10 15:00
11F:→ aquarianboy:错误讯息里面都有写.. 04/10 15:01
12F:→ stephen7710:我将php程式码加入ini_set("SMTP","mail.ee.nchu.edu. 04/12 21:02
14F:→ stephen7710:hu.edu.tw"); 04/12 21:03
15F:→ stephen7710:ini_set("smtp_port", "25"); 04/12 21:03
16F:→ stephen7710:Warning: mail(): SMTP server response: 553 sorry, 04/12 21:04
17F:→ stephen7710:you don't authenticate or the domain isn't in the 04/12 21:04
18F:→ stephen7710:list of allowed rcpthosts 04/12 21:04
19F:→ stephen7710:出现以上错误讯息,请问是什麽原因呢? 04/12 21:06