Android : Why is a JSSE provider used in the following situation?

on Sunday, August 17, 2014


I saw this example - Sending Email in Android using JavaMail API without using the default/built-in app - of using javamail to send an email and i noticed the manual setting of a JSSE provider.

What is the point of using JSSE in the context of sending mail without user interaction on android? ( i never used JSSE related code when sending email via smtps while coding for JVM. ). What are the consequences of removing the bits of code related to JSSEProvider ? I have the feeling i may not connect to a mail server using imaps or smtps. Is that the case? There is some code for android that relies on javamail to send mail, without explicitly using/referencing JSSE related stuff. The code is untested by me but the majority of commenters agrees that it works as advertised, which adds to my confusion.


0 comments:

Post a Comment