Email JavaMe,通过smtp.gmail.com和TLS发送邮件
我正在为Cinterion EHS5设备开发邮件客户端。此设备可以运行JavaMe3.2 我需要使用smtp.gmail.com端口587和TLS发送邮件。 现在我可以通过smtp.gmail.com通过SSL发送电子邮件,代码如下Email JavaMe,通过smtp.gmail.com和TLS发送邮件,email,java-me,smtp,embedded,Email,Java Me,Smtp,Embedded,我正在为Cinterion EHS5设备开发邮件客户端。此设备可以运行JavaMe3.2 我需要使用smtp.gmail.com端口587和TLS发送邮件。 现在我可以通过smtp.gmail.com通过SSL发送电子邮件,代码如下 SecureConnection sc =(SecureConnection)Connector.open("ssl://"+this.mailAccount.getSMTPserverAddress() + ":"+this.mailAccount.getSMTP
SecureConnection sc =(SecureConnection)Connector.open("ssl://"+this.mailAccount.getSMTPserverAddress() + ":"+this.mailAccount.getSMTPport(),Connector.READ_WRITE, true);
我尝试了Blackberry开发者的例子和大量的变体,以使其与TLS一起工作
SecureConnection sc =(SecureConnection)Connector.open("tls://"+this.mailAccount.getSMTPserverAddress() + ":"+this.mailAccount.getSMTPport(),Connector.READ_WRITE, true);
没用
有人知道解决这个问题的好方法吗?
链接,书籍,例子将不胜感激