# Actionscript 3: Email

**URL:** <https://forum.kirupa.com/t/actionscript-3-email/238121>\
**Category:** flash\
**Created:** [September 7, 2007, 11:59am UTC](https://forum.kirupa.com/t/actionscript-3-email/238121 "2007-09-07T11:59:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alme](https://avatars.discourse-cdn.com/v4/letter/a/ecccb3/32.png) [@alme](https://forum.kirupa.com/u/alme)\
**Post date:** [September 7, 2007, 11:59am UTC](https://forum.kirupa.com/t/actionscript-3-email/238121/1 "2007-09-07T11:59:53Z")

</div>

HI,

I am new to Actionscript 3 and I would like to make a “mailbutton”, which results in sending an email to a certain address.

Her is what I have tried ( I got the code from a tecnical note at Adobe):  
import flash.events.MouseEvent;  
import [flash.net](http://flash.net).\*;  
function openPage(event:MouseEvent):void  
{ var request:URLRequest = new URLRequest(“mailto:”+to.text+"?subject="+subject.text+"&body="+body.text); navigateToURL(request, “\_blank”);}myButton.addEventListener(MouseEvent.CLICK, openPage);  
However, when I insert a valid email address instead of +to, e. g. “alme@almeborg.dk”, nothing happens,when I press “myButton”.

Where do I go wrong

Alme
