java - Android SMTP mail sender with SSL ignore -


iam trying use javamail examples found online send emails android application using custom smtp server. smtp server not have valid ssl certificate, instead uses self signed 1 when try connect ssl handshake exception.

i tried use :

    props.put("mail.smtp.auth", "true");     props.put("mail.smtp.ssl.checkserveridentity", "false");     props.put("mail.smtp.ssl.trust", "*"); 

properties error:

e/sendmail(17874): not connect smtp host: {my_smtp_host}, port: {my_smtp_port}, response: -1 

any suggestions? there other library supports sending emails through smtp?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -