[flexcoders] mail from Flex

2006-07-26 Thread jf.saldanha
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






 Yahoo! Groups Sponsor ~-- 
See what's inside the new Yahoo! Groups email.
http://us.click.yahoo.com/3EuRwD/bOaOAA/yQLSAA/nhFolB/TM
~- 

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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





Re: [flexcoders] mail from Flex

2006-07-26 Thread Brendan Meutzner



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
 }/scriptThat'll do what you're looking for.BrendanOn 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



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___