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
Post a Comment