0 Replies Latest reply on Aug 16, 2012 4:02 AM by Hi Avinash

    Convert HTML String to Mail format

    Hi Avinash

      Hi, My probm is I'm trying to send html String  to the mail but it is getting displayed with  html tags in the mail  is there any solution to convert it to mail format with proper alignment as it is displayed in html file please help , And it should understand all the tags I m sending the variable through URLVariables template is as given below.

       

       

      var html:String="<html><body>Hello</body></html>"

       

      private function sendmail():void

           {

       

               var url:String='mailto:';

               var v:URLVariables = new URLVariables();

               v.subject="Hi";

               v.body=html;

       

               var urlRequest:URLRequest = new URLRequest(url);

               urlRequest.data=v;

              navigateToURL(urlRequest, "_self");

           }