Skip navigation
Currently Being Moderated

Is it possible to send HTML Email through Flash using navigateToURL()

Mar 5, 2013 12:03 PM

Tags: #air #mail #htmlcontent

Hey,

I was trying to pass html content to the email body, but looks like it is not doing that.

var request:URLRequest = new URLRequest('mailto:');

            var variables:URLVariables = new URLVariables();

            variables.subject ="Subject";

            variables.body = '<b>hello</b>';

            request.data = variables;

            request.method = URLRequestMethod.GET;

           

           request.contentType = "text/html";

            navigateToURL(request, "_self");

 

 

 

 

 

 

current output inthe email:   <b>hello</b>

 

 

Expected result : hello

 

 

Please let me know if anybody knows the solution

 

 

Note: I even tried these but didn't work.
variables.body = encodeURIComponent('<b>hello</b>');

 
Replies
  • Currently Being Moderated
    Mar 5, 2013 2:57 PM   in reply to katharnak

    Does the mailto spec say it is possible?  I didn’t think so.  I think folks send mail from the server instead.

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 5, 2013 8:16 PM   in reply to katharnak

    In AIR you should be able to write a native extension to do just about anything.

     
    |
    Mark as:

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