I work in ActionScript 3.0 and make a website!
On my website, I want to create a button that will send an email with the click of a button, and I do not want it to open its email client, but simply send it.
I am currently using the mailto function, but I want to know how to send it automatically, or what else I can use to achieve this.
Here is a snippet of my code:
function submitPoll(e:MouseEvent):void {
var request:URLRequest = new URLRequest("mailto:name@hotmail.com"+"?subject=Subject"+"&body= Hello world ");
navigateToURL(request, "_blank");
request.method = URLRequestMethod.POST;
Submit_btn.x = -100;
pollUsed = true;
thanks_txt.x = 849;
thanks_txt.y = 656;
}
jackson
source
share