Skip navigation
Hi Avinash
Currently Being Moderated

Convert HTML String to Mail format

Aug 16, 2012 4:02 AM

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");

     }

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points