Hi Alex, Please find the stack trace below.. TypeError: Error #1009: Cannot access a property or method of a null object reference. at com.hurlant.crypto.cert::X509Certificate/getCommonName()[C:\ws\Crypto\com\hurlant\crypto\cert\X509Certificate.as:215] at com.hurlant.crypto.tls::TLSEngine/loadCertificates()[C:\ws\Crypto\com\hurlant\crypto\tls\TLSEngine.as:691] at com.hurlant.crypto.tls::TLSEngine/parseHandshake()[C:\ws\Crypto\com\hurlant\crypto\tls\TLSEngine.as:330] at com.hurlant.crypto.tls::TLSEngine/parseOneRecord()[C:\ws\Crypto\com\hurlant\crypto\tls\TLSEngine.as:228] at com.hurlant.crypto.tls::TLSEngine/parseRecord()[C:\ws\Crypto\com\hurlant\crypto\tls\TLSEngine.as:179] at com.hurlant.crypto.tls::TLSEngine/dataAvailable()[C:\ws\Crypto\com\hurlant\crypto\tls\TLSEngine.as:139]
On Thu, Oct 10, 2013 at 8:54 AM, Alex Harui <[email protected]> wrote: > Post the error and any stack trace. > ________________________________________ > From: Saju Thankathurai [[email protected]] > Sent: Wednesday, October 09, 2013 7:09 PM > To: [email protected] > Subject: Coltware airxMail throws script error.. > > Hi, > > I am using coltware_airxmail_0_7.swc to send an email from from my flex > mobile app. It worked perfectly before. But for the past one week, it is > throwing an action script error. > > [cid:ii_141a01aa84d82046] > > Here is my code.. > > private function send_plain_email():void{ > var sender:SMTPSender = new SMTPSender(); > sender.addEventListener(SecurityErrorEvent.SECURITY_ERROR,securityErr); > sender.addEventListener("smtpConnectionFailed",connFailed); > sender.addEventListener("smtpCommandError",commandErr); > sender.setParameter(SMTPSender.HOST,"smtp.gmail.com<http://smtp.gmail.com > >"); > sender.setParameter(SMTPSender.CONNECTION_TIMEOUT,20000); > AirxMailConfig.setDefaultHeaderCharset("UTF-8"); > > sender.setParameter(SMTPSender.SOCKET_OBJECT,new TLSSocket()); > sender.setParameter(SMTPSender.PORT,465); > sender.setParameter(SMTPSender.AUTH,true); > sender.setParameter(SMTPSender.USERNAME,"[email protected]<mailto: > [email protected]>"); > sender.setParameter(SMTPSender.PASSWORD,"YourGmailPassword"); > // Create email message > var message:MimeMessage = new MimeMessage(); > var from:INetAddress = new INetAddress("[email protected]<mailto: > [email protected]>","Your Subject"); > message.setFrom(from); > //To email > var toRecpt:INetAddress = new INetAddress("[email protected]<mailto: > [email protected]>","Subject"); > message.addRcpt(RecipientType.TO,toRecpt); > //cc email > var cc:INetAddress = new INetAddress("[email protected]<mailto: > [email protected]>","CC Subject"); > message.addRcpt(RecipientType.CC,cc); > message.setSubject("main Subject"); > message.setTextBody("My Text Body"); > sender.send(message); > sender.close(); > } > > ************************** > > Since it is throwing in the library file, i could not trace the issue. Can > some one help me on this.. > > -- > > Saju > > -- Regards Saju Thankathurai, Ph:+91-9449161313 *"We **cannot do great things on this Earth, only small things with great love"* *-Mother Teresa (1910-1997)*
