Facing Issue while sending mail in java using JavaMail.jar and Activation.jar -


i trying send mail office 365 mail id in java.i have added mail.jar , activation.jar in project. facing following exception.

javax.mail.messagingexception: not convert socket tls; nested exception is:     java.net.socketexception: java.security.nosuchalgorithmexception: default sslcontext not available     @ com.sun.mail.smtp.smtptransport.starttls(smtptransport.java:1907)     @ com.sun.mail.smtp.smtptransport.protocolconnect(smtptransport.java:666)     @ javax.mail.service.connect(service.java:317)     @ javax.mail.service.connect(service.java:176)     @ javax.mail.service.connect(service.java:125)     @ javax.mail.transport.send0(transport.java:194)     @ javax.mail.transport.send(transport.java:124)     @ agent.client.attributegroups.sendreceive.sendmail(sendreceive.java:75)     @ agent.client.attributegroups.mailqueue.calculatetime(mailqueue.java:39)     @ agent.client.mainclass.<init>(mainclass.java:59)     @ agent.client.mainclass.main(mainclass.java:152) caused by: java.net.socketexception: java.security.nosuchalgorithmexception: default sslcontext not available     @ javax.net.ssl.defaultsslsocketfactory.a(sslsocketfactory.java:2)     @ javax.net.ssl.defaultsslsocketfactory.createsocket(sslsocketfactory.java:7)     @ com.sun.mail.util.socketfetcher.starttls(socketfetcher.java:485)     @ com.sun.mail.smtp.smtptransport.starttls(smtptransport.java:1902) 

please me out resolve exception.


Comments

Popular posts from this blog

javascript - Laravel datatable invalid JSON response -

java - Exception in thread "main" org.springframework.context.ApplicationContextException: Unable to start embedded container; -

sql server 2008 - My Sql Code Get An Error Of Msg 245, Level 16, State 1, Line 1 Conversion failed when converting the varchar value '8:45 AM' to data type int -