0

好的,Java中还有其他用于发送电子邮件的库吗?

我尝试使用javax.mail并且commons-email我不断收到此错误:

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)
4

1 回答 1

0

你需要外部库:

1)javax.mail
2)activation.jar

于 2017-04-16T19:52:54.537 回答