You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I have been trying to integrate greenmail to test my email sending code, I am getting the following error when I run the test, Could you please help with it.
Exception in thread "smtp:127.0.0.1:3025<-/127.0.0.1:55914" java.util.ServiceConfigurationError: javax.mail.Provider: com.sun.mail.imap.IMAPProvider not a subtype
at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:593)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1244)
at java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1273)
at java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1309)
at java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1393)
at javax.mail.Session.loadProviders(Session.java:964)
at javax.mail.Session.<init>(Session.java:254)
at javax.mail.Session.getDefaultInstance(Session.java:355)
at javax.mail.Session.getDefaultInstance(Session.java:395)
at com.icegreen.greenmail.util.GreenMailUtil.newMimeMessage(GreenMailUtil.java:69)
at com.icegreen.greenmail.smtp.commands.DataCommand.execute(DataCommand.java:54)
at com.icegreen.greenmail.smtp.SmtpHandler.handleCommand(SmtpHandler.java:92)
at com.icegreen.greenmail.smtp.SmtpHandler.run(SmtpHandler.java:46)
at com.icegreen.greenmail.server.AbstractServer.lambda$handleClientSocket$0(AbstractServer.java:165)
at java.base/java.lang.Thread.run(Thread.java:833)
Hi, I have been trying to integrate greenmail to test my email sending code, I am getting the following error when I run the test, Could you please help with it.
The text was updated successfully, but these errors were encountered: