<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="vertical">
 <mx:HTTPService url="*servers* <http://.............php/>*ide page url*"
id="srv" result="res(event)" fault="flevent(event)"/>
 <mx:Form>
  <mx:FormHeading label="Sending Mail"/>
  <mx:FormItem label="E-Mail">
   <mx:TextInput id="tiemail"/>
  </mx:FormItem>
  <mx:FormItem label="Message">
   <mx:TextInput id="timsg"/>
  </mx:FormItem>
 </mx:Form>
 <mx:Button label="Send Mail" click="sendsrv()"/>
 <mx:Script>
  <![CDATA[
   import mx.rpc.events.FaultEvent;
   import mx.rpc.events.ResultEvent;
   import mx.controls.Alert;
   private function res(e:ResultEvent)
   {
    Alert.show("Mail sent Successfully");
   }
    private function flevent(f:FaultEvent)
   {
    Alert.show('fault '+f.fault.toString());
   }
   private function sendsrv()
   {
    var ob:Object=new Object;
    ob.email=tiemail.text;
    ob.message=timsg.text;
    srv.send(ob);
   }
  ]]>
 </mx:Script>
</mx:Application>


On Fri, Mar 6, 2009 at 10:28 AM, chandra <[email protected]> wrote:

>
> Hi Friends,
>
> I need code for sending mails using Flex3. Can any one help me. Please
> its urgent.
>
>
> Thanks
> Chandra
>
> >
>


-- 
Thanks & Regards,

Jagan Mady's

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to