The trustAnchors parameter must be non-empty error typically occurs when you are trying to create an instance of the SSLContext class in Java and you pass an empty trust store as the trustAnchors parameter.
To send an email in Android using the JavaMail API without using the default/built-in app, you can use the following steps: