-
Notifications
You must be signed in to change notification settings - Fork 222
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
发送出现 NoClassDefFoundError: javax.activation.DataHandler #6
Comments
@oy-paddy 我测试是可以使用,先确认是不是开启了POP3/SMTP服务。如果没有开启,会抛异常,提示503 OhMyEmail.config(OhMyEmail.SMTP_QQ(true), "[email protected]", "你的授权码");
OhMyEmail.subject("这是一封测试TEXT邮件")
.from("chenshun00的qq邮箱")
.to("[email protected]")
.text("信件内容")
.send(); |
@chenshun00 服务我确认已经开启了,授权码我也填写正确了。 java.lang.NoClassDefFoundError: javax.activation.DataHandler 是不是还需要其他jar包支持呢? |
看起来这不是这个库所专有的问题,毕竟这个库只是把 |
您好,发送大文件附件的时候,报错:io.github.biezhi.ome.SendMailException: com.sun.mail.smtp.SMTPSendFailedException: 451 Error: queue file write error
Caused by: com.sun.mail.smtp.SMTPSendFailedException: 451 Error: queue file write error
请问有解决方法吗? 我的文件80到90M左右的MP4文件。 |
你好,根据你的栗子,我调用send函数后,会报错
java.lang.NoClassDefFoundError: javax.activation.DataHandler
,发送也失败。据说要导入以下三个jia包。但是导入进去还是失败。。。
我的代码如下:
The text was updated successfully, but these errors were encountered: