Open an email message from Flex with the body of the email message populated
apache-flex, email, flex4.5
Solution
Here is a sample to populate the email body
var mailMsg:URLRequest = new URLRequest('mailto:' + recipients);
var variables:URLVariables = new URLVariables();
variables.subject = mailSubject;
variables.body = mailBody;
mailMsg.data = variables;
mailMsg.method = URLRequestMethod.GET;
navigateToURL(mailMsg, "_self");
Problem
I want to set up an email from Flex so that when I press a button it opens a new message from the default mail program. (In most cases this will be Outlook). I have got something that uses mailTo: and open an new message with the to email address filled in. What I want is to populate the message part of the email. I am not overly concerned with who is in the to: line. I just want the message part populated. Is this possible in Flex? Thanks