Could not connect to SMTP host: smtp.gmail.com
<p>I am a new developer in android and working on smtp mail service in my Android app. I had follow below link for references  </p>

<p>Link: <a href="http://mobiledevtuts.com/android/android-sdk-smtp-email-tutorial/" rel="nofollow">http://mobiledevtuts.com/android/android-sdk-smtp-email-tutorial/</a>
Link: <a href="http://gafurbabu.wordpress.com/2012/01/08/sending-email-in-android-via-smtp-without-using-the-default-android-appbuiltin-email-application/" rel="nofollow">http://gafurbabu.wordpress.com/2012/01/08/sending-email-in-android-via-smtp-without-using-the-default-android-appbuiltin-email-application/</a></p>

<p>But I got the below errors. I can't understand where I did wrong. Is anyone know what happening in my code. </p>

<pre><code>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)
</code></pre>

<p>Thanks in advance</p>
