Email problems

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • chevinbighill
    New Member
    • Jul 2008
    • 1

    Email problems

    HI guys
    I'm having trouble with this code.

    on (release) {
    var address = "myemail@Gmail. com";
    var caption = "Enquires:" ;
    var message = "";
    button.onReleas e = function() {
    getURL("mailto: "+address+"?Sub ject="+caption+ "&body="+messag e);
    };
    }

    I've named the instance "button" and placed this script on the button but when i publish and click. The email is activated and the correct email and subject appears but it also opens a redundant web browser as well....

    Im very new to scripting and am struggling to work this out
    Please help id be very grateful
    Cheers
    Jason
  • joedeene
    Contributor
    • Jul 2008
    • 579

    #2
    could you explain a bit more, because i dont know what you are trying to do, the getURL property is going to open up a new window for a browser or open a new tab in some newer web broswers. but when you send an email, it will open up your default mail sender, which mine is outlook, not the browser, like yahoo or gmail or aolmail, but do u want it to open a browser or not? and what else is it opening, since you mentioned redundant. and i used a part of your code, you didnt need the button1.onRelea se since it still works the getURL function. it depends on how you are expecting to send the email and all, not many ways in flash. heres the edited code:
    Code:
    on (release) {
    	var address = "myemail@Gmail.com";
    	var caption = "Enquires:";
    	var message = "";
    	getURL("mailto:"+address+"?Subject="+caption+"&body="+message);
    }

    Comment

    Working...