Search code examples
actionscript-3apache-flexflash-builderflex4.5

adding subject in email in flex mobile application


Problem: How to send email to some person(s) with Subject line on some event?

Platform: Flash Builder 4.6, Flex Mobile Application

I am using following code on button click but it do nothing.

var email:String = "mailto:[email protected]";
                const mailURL:String = email; 
                var targetURL:URLRequest = new URLRequest(mailURL); 
                navigateToURL(targetURL);

Also tell how can I check it on desktop?


Solution

  • This works for me:

    var email:String = "mailto:[email protected]?subject=YOUR_SUBJECT_HERE";