超出存储分配。服务器响应为:4.3.1消息大小超出了固定的最大消息大小 [英] Exceeded storage allocation. The server response was: 4.3.1 Message size exceeds fixed maximum message size

查看:565
本文介绍了超出存储分配。服务器响应为:4.3.1消息大小超出了固定的最大消息大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用SMTPclient发送带有附件的邮件。当附件超过2mb时,
出现以下错误:
**存储分配超出。服务器响应为:4.3.1消息大小超出了固定的最大消息大小。 **

I am using SMTPclient to send mail with attachment. When the attachment is more than 2mb, I am getting the below error: ** "Exceeded storage allocation. The server response was: 4.3.1 Message size exceeds fixed maximum message size". **

1)我可以使用smtpclient发送附件大小> 2mb的电子邮件吗? **如果是,附件的限制是什么?

1) Can i send email ** using smtpclient with attachment size >2mb. ** If yes, What is the limit of attachment.

2)如何解决以上错误?

2) How can i fix the above error?

请给我一个想法,如果您有解决方案。

Please give me an idea,if you have the solution.

推荐答案

现代SMTP邮件服务器具有一个配置变量来设置允许的最大邮件大小。这定义了邮件服务器将在单个消息中接受的最大数据量。如果您尝试发送更大的消息,服务器将拒绝它。但是,您有很多选择:

Modern SMTP mail servers have a configuration variable to set the maximum allowed message size. This defines the largest amount of data the mail server will accept in a single message. If you're trying to send a larger message, the server will reject it. You have quite a few options, however:


  1. 压缩附件以减小其大小(例如,使用zip)

  2. 更改服务器上的最大邮件大小限制,但这需要管理员对服务器的访问权限

  3. 将您的邮件拆分为较小的块,每个块均小于服务器限制。

  4. 使用其他机制/协议来传输附件。

  1. Compress the attachment to reduce its size (e.g. using zip)
  2. Change the maximum message size limit on the server, but this requires admin access to the server
  3. Break your message down into smaller chunks, where each chunk is smaller than the server limit.
  4. Use a different mechanism/protocol to transfer the attachment.

这篇关于超出存储分配。服务器响应为:4.3.1消息大小超出了固定的最大消息大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆