1

我是 android 的新开发人员,在我的 Android 应用程序中开发 smtp 邮件服务。我已经按照以下链接获取参考

链接: http: //mobiledevtuts.com/android/android-sdk-smtp-email-tutorial/ 链接: http: //gafurbabu.wordpress.com/2012/01/08/sending-email-in-android-via- smtp-without-using-the-default-android-appbuiltin-email-application/

但我得到了以下错误。我不明白我哪里做错了。有谁知道我的代码中发生了什么。

03-13 17:49:43.041: E/SendMail(30702): Could not connect to SMTP host: smtp.gmail.com, port: 465
03-13 17:49:43.041: E/SendMail(30702): javax.mail.MessagingException: Could not connect to SMTP host: smtp.gmail.com, port: 465;
03-13 17:49:43.041: E/SendMail(30702):  javax.net.ssl.SSLException: Not trusted server certificate
03-13 17:49:43.041: E/SendMail(30702):  at com.sun.mail.smtp.SMTPTransport.openServer(SMTPTransport.java:1391)
03-13 17:49:43.041: E/SendMail(30702):  at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:412)

提前致谢

4

0 回答 0