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.

Leave a Reply