hey Can I send mail using my exchange server : my exchange server is emaild.prashant.com and I am trying it in the following example
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:HTTPService url="http://emaild.prashant.com "
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):void
{
Alert.show("Mail sent Successfully");
}
private function flevent(f:FaultEvent):void
{
Alert.show('fault '+f.fault.toString());
}
private function sendsrv():void
{
var ob:Object=new Object;
ob.email=tiemail.text;
//ob.message=timsg.text;
srv.send(ob);
}
]]>
</mx:Script>
</mx:Application>
will it work ?? Please suggests me