我正在使用 actionscript 3.0 并正在制作一个网站!
在我的网站中,我想制作一个按钮,通过单击按钮发送电子邮件,我不希望它打开他们的邮件客户端,而只是发送它。
我目前正在使用“mailto”功能,但想知道如何让它自动发送,或者我还能用什么来实现它。
这是我的代码片段:
function submitPoll(e:MouseEvent):void {
//sending the email stuff
var request:URLRequest = new URLRequest("mailto:name@hotmail.com"+"?subject=Subject"+"&body= Hello world ");
navigateToURL(request, "_blank");
request.method = URLRequestMethod.POST;
//other
Submit_btn.x = -100;
pollUsed = true;
thanks_txt.x = 849;
thanks_txt.y = 656;
}