Search code examples
actionscript-3apache-flexflex3

Outlook does not show hyperlink when filename contain space in it


I am trying to paste hyerlink in body of mail in outlook by flex application using navigateToUrl method with mailTo protocol.

but outlook breaks hyperlink after first space in hyperlink.

I tried with < ,> before am after link but it doesnot help out me.

Is there any other way to paste link in body mail containing space.


Solution

  • you have to url-encode the whole message:

     var url:String = "mailto:" + email + "?subject=" + escape(subject) + "&body=" + escape(body);
     navigateToUrl(new URLRequest(url));
    

    cheers