Mailing in flex using javascript function : mailto

Mailing in flex app using javascript functions: the first thing here is that u should know that there is a function “mailto” with parameter e-ID, then its simple include it the URLRequest and call navigatoURL method to raise the function. as shown below

private function mailme():void
{
var u:URLRequest = new URLRequest(“mailto:” + ti1.text);
navigateToURL(u,”_self”);
}

<mx:TextInput id=”ti1″/>   — this contains the e-ID and the button to call mailme()
<mx:Button click=”mailme()”/>

thats all it will raise a outlook express dialog and with e-ID.

Advertisements

6 Responses to Mailing in flex using javascript function : mailto

  1. JK says:

    Cool sample.

  2. anthony says:

    is there a way to make it pop in a new window?

  3. Jeyabalan says:

    Hi
    Is there any mail template available in flex.
    Please Help me

  4. sunny says:

    so far so good, now how would i make some text appear in bold. what if i wanted to include an image in the body. How would i go about doing that?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: