fishkingsin / airxmail

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

SMTP ERROR ON CONNECTING TO GMAIL #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
// If you use TLS/SSL
// you can get as3crypto at http://code.google.com/p/as3crypto/
sender.addEventListener(SMTPEvent.SMTP_START_TLS,startTlsHandler);
var tlssocket:TLSSocket = new TLSSocket();
sender.setParameter(SMTPSender.SOCKET_OBJECT,tlssocket); 

What is the expected output? What do you see instead?

Expected "SMTPEvent.SMTP_START_TLS" to trigger and follow up in the handler but 
it's never triggered.

public function startTlsHandler(event:SMTPEvent):void{
    trace("tls handler");
    var sock:Socket = event.socket as Socket;
    var tls:TLSSocket = new TLSSocket();
    sender.setParameter(SMTPSender.SOCKET_OBJECT,tls);
    tls.startTLS(sock,txt_smtp.text);
}

What version of the product are you using? On what operating system?
Flashbuilder 4.6
coltware_airxmail_0_7.swc
as3crypto.swc 1.3

Please provide any additional information below.

TLSEngine shutdown triggered by Error: Unsupported TLS version: 3230

That's the error that is returned when attempting to send email through gmail 
smtp on port 587, I tried port 465 but there is no error or email.

Original issue reported on code.google.com by kamilsal...@gmail.com on 3 May 2012 at 3:02

GoogleCodeExporter commented 9 years ago
If you want to use TLS connection, You don't need these steps.
(Because TLS connection needs plain socket before handshaking... )

var tlssocket:TLSSocket = new TLSSocket();
sender.setParameter(SMTPSender.SOCKET_OBJECT,tlssocket);

If you want to use SSL connection, You don't need these steps.

sender.addEventListener(SMTPEvent.SMTP_START_TLS,startTlsHandler);
public function startTlsHandler(event:SMTPEvent):void{
    trace("tls handler");
    var sock:Socket = event.socket as Socket;
    var tls:TLSSocket = new TLSSocket();
    sender.setParameter(SMTPSender.SOCKET_OBJECT,tls);
    tls.startTLS(sock,txt_smtp.text);
}

Original comment by coltware@gmail.com on 19 Jul 2012 at 3:50

GoogleCodeExporter commented 9 years ago
I'll handle this one.

Original comment by coltware@gmail.com on 19 Jul 2012 at 3:50

GoogleCodeExporter commented 9 years ago
What does "I'll handle this one" mean? I have the same issue. I am able to 
create a message with no attachements and send no problem, but as soon as I add 
an attachment my email never gets sent.

Original comment by sancleme...@gmail.com on 7 Aug 2012 at 11:29

GoogleCodeExporter commented 9 years ago
>What does "I'll handle this one" mean?

Mmmm, I forgot it means what ?
Maybe It means I fixed it.

If you use TLS/SSL socket to send e-mail, airxmail was not able to send because 
bug 7.
But I fixed the bug on r57.

So please check smtp sever raise some error or not ?

Regards

Original comment by coltware@gmail.com on 9 Aug 2012 at 3:58

GoogleCodeExporter commented 9 years ago
I have downloaded the latest version of airxmail from SVN and the latest 
version of Crypto from SVN and when I try to send mail via TLS I get the error 
"TLSEngine shutdown triggered by Error: Unsupported TLS version: 3230"  

I have attached a file with the code I am using to send the email.  I have a 
combobox that allows me to select either None, SSL, or TLS.  I have 
successfully tested an unecrypted BlueHost email and an SSL Encrypted Gmail 
account.  However, trying to use TLS with Gmail and Mobile Me are both giving 
this error.  I don't ever even get to the startTlsHandler function.  It fails 
before that.

I have attached a second file which is the logging when I try to connect and 
send email via TLS.

Any help would be appreciated.

Original comment by marc.car...@studiocloud.com on 25 Sep 2013 at 5:54

Attachments:

GoogleCodeExporter commented 9 years ago
please try to use as3crypto 1.3.
i don't know the reason why as3crypto failed.
but i always use as3crypto verson 1.3,so please try it.

Original comment by coltware@gmail.com on 9 Oct 2013 at 11:42

GoogleCodeExporter commented 9 years ago
Did anyone get this to work? As of the beginning of the month ssl on 465 
doesn't work anymore for us, at least not to gmail's smtp servers ... so we're 
back to trying to get tls working.

Original comment by laur...@rundis.com on 14 Oct 2013 at 4:06

GoogleCodeExporter commented 9 years ago
I downloaded as3crypto 1.3 from 
https://code.google.com/p/as3crypto/downloads/detail?name=as3crypto.swc and the 
0.7 SWC of airxmail and I get the same issue.  Could it be somehow related to 
the Flex/AIR SDK for the project  I am currently using Flex 3.6 and AIR 3.7

Original comment by marc.car...@studiocloud.com on 25 Oct 2013 at 3:22