15 Replies Latest reply on Nov 2, 2011 7:18 PM by Web Magi

    URLRequest and navigateToURL to open email client but HTML email, not plain text???

    Gregory Lafrance Level 6

      I want users to click a button that uses URLRequest and navigateToURL to open the user's default email client with email body pre-populated with HTML email.

       

      Even though I have tried to set the contentType property to one of the following, the HTML tags always display:

       

      application/xml

      application/html

       

       

      var request:URLRequest = new URLRequest("mailto: ?subject=Test Email&body=<h1>Test Body</h1>");request.contentType = "multipart/form-data";
      navigateToURL(request, "_self");
      
      

       

       

      BTW, the above code is simplified, so I am using escape() on the subject and body text, etc.

       

      So, is there any way to use mailto in this way to open the default email client and pre-populate with HTML email but not see the tags (BUT NOT REVERT TO PLAINTEXT)?