I have found the following code will prevent the blank explorer 
window to popup:

        private function mailTest():void {              
        var urlRequest:URLRequest =  
                        new URLRequest("mailto:[EMAIL PROTECTED]
subject=Widget testing&body=this is the body content");
        navigateToURL(urlRequest, "_self");
        trace ("mailtest");
        }

Does anyone know how to add an attachment to an email?



--- In [email protected], "Dominic Pazula" 
<[EMAIL PROTECTED]> wrote:
>
> Try this.  It pops up a new blank explorer window, but it does what 
> you are looking for.
> 
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
> layout="absolute">
>       <mx:Script>
>               <![CDATA[
>                       private function sendEmail():void{
>                               var mailto:String 
> = "mailto:"+toEmail.text;
>                               navigateToURL(new URLRequest(mailto));
>                       }
>               ]]>
>       </mx:Script>
>       <mx:Button x="10" y="69" label="Send Email" click="sendEmail
> ()"/>
>       <mx:TextInput x="10" y="39" id="toEmail"/>
>       
> </mx:Application>
> 
> --- In [email protected], "Mohammad, Rafi " 
> <rafi.mohammad@> wrote:
> >
> > hi, I have developed a flex application.Now there is a 
> button "Email" , which , when clicked  ,  has to open a new outlook 
> email window with "to" pointing to specific fields...
> > 
> > does any one have a solution for this...
> > 
> > appreciate your help..
> > 
> > regards,
> > 
> > Rafi
> >
>


Reply via email to