0

Ok so is there any other library in java for sending emails?

I tried to use javax.mail and commons-email and I keep getting this error:

Exception in thread "Thread-645" java.lang.UnsupportedOperationException: Method not yet implemented
    at javax.mail.internet.MimeMessage.<init>(MimeMessage.java:89)
    at org.apache.commons.mail.Email.buildMimeMessage(Email.java:1011)
    at org.apache.commons.mail.Email.send(Email.java:1162)
    at com.liveratesfeeds.tss.email.SendEmail.sendWarningEmail(SendEmail.java:62)
kitsuneFox
  • 1,243
  • 3
  • 18
  • 31
  • 1
    What version of JavaMail are you using? And if you haven’t already, please edit your question and show the *entire* stack trace, including any `Caused by` sections. – VGR Apr 16 '17 at 23:39
  • What functionality do you try to use? Can you post a https://stackoverflow.com/help/mcve please? – Robert Apr 17 '17 at 00:13

1 Answers1

0

you need to external libraries:

1) javax.mail
2) activation.jar

milouk
  • 171
  • 1
  • 3
  • 11
  • I see all the Java email tutorials on sending emails use both of these but never fully understood why the activation.jar is a necessity, if anyone could provide insight on this it'd be appreciated – CyberStems Dec 13 '19 at 18:22