Email button pop up users client

I have a button that I want to add a simple action script to so on (release) it opens users default mail client.
Here is the code I am using but it is not opening mail client any suggestions?

on (release) {
getURL(“mailto:example@hotmail.com”);
}

Thanks in advance.

That code is perfectly correct if it is on the button actions

If it’s just in the main timeline you could use:

buttonname.onRelease = function() {
   getURL("mailto:example@hotmail.com");
}