You could call a _javascript_ function in your shell HTML file to acheive the functionality you're looking for...


In your Flex app create/call a func like:

        public function emailViewURL():void
        {
            var functionName:String = "emailURL";
            var to:String = "[EMAIL PROTECTED]";
            var subject:String = "this is an e-mail subject";
            var subject:String = "this is an e-mail body";

            var callResult:String = ExternalInterface.call(functionName, urlString, subject, body);
        }


Inside your html add the following:

<script type="text/_javascript_" language="_javascript_">

    function emailURL(to, subject, body)
    {
        location.href = "" + to + "?SUBJECT=" + subject + "&BODY=" + body
    }

</script>

That'll do what you're looking for.


Brendan



On 7/26/06, jf.saldanha < [EMAIL PROTECTED]> wrote:

Hi FlexCoders

I need some Help on this Issue, I try this to send Email from Flex:

<mx:Script>
<![CDATA[
public function executEmail(event:MouseEvent):void{
var u:URLRequest = new URLRequest ("mailto:[EMAIL PROTECTED]");
navigateToURL(u);
}
]]>
</mx:Script>

<mx:Button click="executEmail(event)"/>

This work, open a default Email window but open a Browser window to.

Need some Help Thanks

jf.sal


__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to