-
simple launch email problem
I searched and found this code.
I thought I had it working but now in a browser locally my email program does not launch.
I just want it to launch an email app with the recipient address filled in.
PHP Code:
menu_mc.address_mc.addEventListener(MouseEvent.MOUSE_UP, email);
function email(e:Event):void
{
trace("email clicked");
var request:URLRequest = new URLRequest("mailto:marco@orangefilmworks.com");
navigateToURL(request, "_self");
}
thanks
mark
-
Total Universe Mod
I haven't messed with mailto in as3 but it should be as easy as tacking on url vars to your request path.
mailto:marco@orangefilmworks.com?subject=my subject&body=my message
-
Hi,
thanks for the reply. you were correct.
I wanted to try this on a mac with safari at home before replying
worked on a PC, with chrome and explorer, so should be fine.
This is exactly what worked for me, in case some one else searches for this.
[php]
var myEmail:String = "mailto:marco@theaddress.com";
menu_mc.address_mc.addEventListener(MouseEvent.MOU SE_UP, email);
function email(e:Event):void
{
navigateToURL(new URLRequest(myEmail), "_blank");
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|