错误:552 5.3.4邮件大小超过固定的最大邮件大小

时间:2016-03-18 07:01:53

标签: java smtp javamail

我正在使用 JavaMail 在应用程序中发送电子邮件通信

通过添加多个文件作为附件发送电子邮件通信( 10-12文件 )所有文件大小介于 4-5MB 之间

结果:电子邮件通信失败。

错误日志:

<param1 - com.sun.mail.smtp.SMTPSendFailedException: 552 5.3.4 Message size exceeds fixed maximum message size

    at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1388)
    at com.sun.mail.smtp.SMTPTransport.finishData(SMTPTransport.java:1215)
    at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:586)
    at javax.mail.Transport.send0(Transport.java:189)
    at javax.mail.Transport.send(Transport.java:119)
    at com.framework.services.mail.Mailer.send(Mailer.java:237)
    at com.framework.services.mail.Mailer.sendMail(Mailer.java:412)
    at com.framework.services.mail.MailServiceImpl.sendMail(MailServiceImpl.java:50)
    at com.agx.util.ost.EmailUtil.sendEmail(EmailUtil.java:211)
    at com.agx.scheduler.CorrespondenceSchedulerJob.sendCorrespondence(CorrespondenceSchedulerJob.java:4612)
    at com.agx.scheduler.CorrespondenceSchedulerJob.startCorrespondenceScheduler(CorrespondenceSchedulerJob.java:236)
    at com.agx.scheduler.CorrespondenceSchedulerJob.execute(CorrespondenceSchedulerJob.java:224)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:213)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:557)
> 

上述错误的原因是什么?

谢谢!

1 个答案:

答案 0 :(得分:2)

您的服务器告诉您您的邮件太大了。更改服务器的配置以允许更大的消息,或发送更小的消息。