# Mailto problem

**URL:** <https://forum.kirupa.com/t/mailto-problem/41981>\
**Category:** Uncategorized\
**Created:** [February 3, 2004, 11:51pm UTC](https://forum.kirupa.com/t/mailto-problem/41981 "2004-02-03T23:51:56Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Danboy](https://avatars.discourse-cdn.com/v4/letter/d/f9ae1b/32.png) [@Danboy](https://forum.kirupa.com/u/Danboy)\
**Post date:** [February 3, 2004, 11:51pm UTC](https://forum.kirupa.com/t/mailto-problem/41981/1 "2004-02-03T23:51:56Z")

</div>

Hi there,

I’m having a mystifying problem with sending an email from Flash MX 2004. I have an email button with this code attached directly on the button:

on (release) {  
getURL("mailto:info@fletchermunsoneffect.co.uk");  
}

but it just won’t work. However, when I preview the swf in a browser it works for some reason. This is a problem, as the finished swf is intended for a CD-Rom presentation which will autorun upon inserting the CD, and the swf will fill the whole screen (again, this works but the email doesn’t!)

I’ve also tried creating a function within the frame such as:

mailbtn.onpress = function() {  
getURL("mailto:info@fletchermunsoneffect.co.uk");  
};

but this doesn’t work either!

Any suggestions would be greatly appreciated,

Dan

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 3, 2004, 11:57pm UTC](https://forum.kirupa.com/t/mailto-problem/41981/2 "2004-02-03T23:57:10Z")

</div>

maybe add a \_blank ?? dont know if it will work  
[AS]getURL("mailto:info@fletchermunsoneffect.co.uk", \_blank);[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 4, 2004, 10:50am UTC](https://forum.kirupa.com/t/mailto-problem/41981/3 "2004-02-04T10:50:15Z")

</div>

Hey there SoloDesignz,

I’ve tried that too but it still doesn’t work. Like I said, the email link works if the swf is previewed in a browser, but doesn’t work if viewed standalone in Flash Player 7. Surely there must be a simple way of doing this…anyone?!

Dan

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 9, 2004, 7:34pm UTC](https://forum.kirupa.com/t/mailto-problem/41981/4 "2004-02-09T19:34:26Z")

</div>

Try this:

[AS]getURL("mailto:info@fletchermunsoneffect.co.uk", window="\_blank");[/AS]

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 11, 2004, 3:27pm UTC](https://forum.kirupa.com/t/mailto-problem/41981/5 "2004-02-11T15:27:20Z")

</div>

It’s working either way on my computer. Try it on another, maybe it’s your settings or something.  
Check if plain html address works with getURL.  
Anyway an ugly workaround is to put directly a link (html text).

It wasn’t me who wrote that:)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 11, 2004, 6:40pm UTC](https://forum.kirupa.com/t/mailto-problem/41981/6 "2004-02-11T18:40:59Z")

</div>

[AS]on (release) {  
getURL("mailto:your@email.com", “\_blank”);  
}[/AS]
