Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 2 of 2
  1. #1

    Default How to activate a button to send email?

    Hi all,

    How do I activate a button so that it, like in HTML, opens for example Outlook Express with the email address I added?

    Thanks for any help on this!

    Cheers

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    It is a more professional look to use a mailform with a backend scripting language like PHP to process the email without the use of the users default email program. You can find a tutorial for creating your own custom mailform here...

    http://ntdesigns.net/tutorial/Mailform.html

    However, if all your after is using the users default email app, you can do something like this...

    Code:
    mySubmit.onRelease = function() {
    	myEmail = "you@yoursite.com";
    	userName = name_txt.text;
    	userEmail = email_txt.text;
    	userMessage = body_txt.text;
    	if (_root.userName == "" | userEmail == "" | userMessage == "") {
    		_root.body_txt.text = "Please enter the correct information";
    	} else {
    		getURL("mailTo:"+myEmail+"?subject=Message from: "+userName+", with the Email address of: "+userEmail+" &body="+body_txt.text);
    	}
    }
    hope it helps
    NTD
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial