|
||||||||||||||||||||||||||||||||
Welcome To NewFreeTemplates.com Flash Tutorials Area - Mailto: Launch email from Flash animation
Create 2 edit fields for email address and for subject. Name email field "Address" and subject field "Subject". Create "Send" button. Use the following ActionScript code for button's OnUp (or OnClick) event:
mailto = "mailto:" + Address + "?subject=" + Subject; getURL(mailto,"_self");
Download Flash Designer SFD file: See also: T1043 Create and validate a form in Flash See also: T1057 Send a form with PHP To set fixed email address and subject use Get URL field:
Mailto Syntax
Separate parameters with &. Example mailto:support@selteco.com?subject=tutorial&cc=sales@selteco.com
Breaking the body into linesUse %0A as line break, for example:mailto:support@selteco.com?subject=tutorial&body=this body has%0Atwo lines Sending email directly from FlashFlash Player will launch your default mail application to complete and send out the email. To send the email directly you have to execute a web based email script, usually provided by your internet provider. We can't give any exact instructions because the script is provider specific. You have to build a query string and use getURL function to execute the script, for example:
body = "This is message body"; email = "someone@server.com"; querystring = "http://www.server.com/emailscript.php?" + "body=" + body + "&email=" + email; getURL(querystring,"_self");
Author: www.flashdesignerzone.com
|
|
|||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||
| All Rights Reserved 2007-2008 by NewFreeTemplates.com | ||||||||||||||||||||||||||||||||