Welcome, Guest. Please login or register.
Did you miss your activation email?
31 Jul 2010, 11:19:09 UTC
Forum home
+  flexdeveloper.eu Forum
|-+  Flex and ActionScript 3.0
| |-+  Flex Builder, Flash Builder & Eclipse (Moderators: JMWhittaker, Jan K, thewarpedcoder, James)
| | |-+  email with exchange server
« previous next »
Pages: [1] Print
Author Topic: email with exchange server (Read 167 times)
prashant
Senior FD
***
Posts: 197


« on: 13 Feb 2010, 13:04:16 UTC »

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

Code:
<?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 Smiley
« Last Edit: 15 Feb 2010, 12:22:53 UTC by flexy » Logged
flexy
flexdeveloper.eu
Guru/Addict FD
*****
Posts: 3,155


Recovering Coffee Addict & Adobe Expert


WWW
« Reply #1 on: 15 Feb 2010, 12:24:07 UTC »

I very much doubt it... If that worked, then anyone on the Internet would be able to send mail through your Exchange server.
Logged

Pages: [1] Print
« previous next »
Share this on: Twitter Twitter Del.icio.us del.icio.us Digg Digg
Jump to:

©2006-2010 Flexdeveloper.eu/Jodie O'Rourke. All rights reserved.
Adobe®, Adobe® Flash™, Adobe® AIR™ and Adobe® Flex™ are registered trademarks of Adobe Systems Incorporated in the United States and other countries. All rights reserved.

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC