title: How to Make a button send an email using AS3 automatically
body: <p>I am working in actionscript 3.0 and am making a website!</p>
  
  <p>In my website, I want to make a button that sends an email using a click of button and I don't want it to open their mail client, instead just send it.</p>
  
  <p>I am currently using the "mailto" function but would like to know how to make it send automatically, or what else I can use to achieve that.</p>
  
  <p>Here is a snippet of my code:</p>
  
  <pre><code>function submitPoll(e:MouseEvent):void {
  
    //sending the email stuff
    var request:URLRequest = new URLRequest("mailto:name@hotmail.com"+"?subject=Subject"+"&amp;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;
  
  }
  </code></pre>