jeremyrudd / airxmail

Automatically exported from code.google.com/p/airxmail
GNU General Public License v3.0
0 stars 0 forks source link

Type was not found or not compile time constant :Vector #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When I tried to implement coltware_airxmail_v0_5.swc,I got "Type was not found 
or not compile time constant :Vector" error.

Original issue reported on code.google.com by pr...@hakunamatata.in on 15 Jul 2011 at 10:26

GoogleCodeExporter commented 9 years ago
Pls have a look at this code.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
    <![CDATA[
        import com.coltware.airxmail.MimeMessage;
        import com.coltware.airxmail.RecipientType;
        import com.coltware.airxmail.INetAddress;
        import com.coltware.airxmail.MailSender.SMTPSender;

        import mx.controls.Alert;
        import flash.net.navigateToURL;

        private function sendMail():void{
            var message:MimeMessage=new MimeMessage();
            var sender:SMTPSender=new SMTPSender();
            sender.setParameter(SMTPSender.HOST,"smtp.gmail.com");
            sender.setParameter(SMTPSender.PORT,"465");
            sender.setParameter(SMTPSender.AUTH,true);
            sender.setParameter(SMTPSender.USERNAME,"sriarun99@gmail.com");
            sender.setParameter(SMTPSender.PASSWORD,"9840157137");
            message.setSubject("Testing");

            var from:INetAddress = new INetAddress("priyamalar_mca@yahoo.co.in","from label");
            message.setFrom(from);
            var toRecpt:INetAddress = new INetAddress("priya@hakunamatata.in","to label");
            message.addRcpt(RecipientType.TO,toRecpt);
            message.setTextBody("It works");
            sender.send(message);
            sender.close(); 
        }
    ]]>
</mx:Script>
    <mx:Button id="btnSendMail" label="Send Mail" click="sendMail()"/>
    </mx:Application>

Original comment by pr...@hakunamatata.in on 15 Jul 2011 at 10:29