超出存储分配。服务器响应为: 4.3.1 消息大小超出固定最大消息大小
我正在使用 SMTPclient 发送带有附件的邮件。当附件超过2mb时, 我收到以下错误: **“超出存储分配。服务器响应为:4.3.1 消息大小超出固定最大消息大小”。 **
1) 我可以使用 smtpclient 发送附件大小大于 2mb 的电子邮件 **吗? ** 如果是,附件的限制是多少。
2)如何解决上述错误?
如果您有解决方案,请给我一个想法。
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) Can i send email ** using smtpclient with attachment size >2mb. ** If yes, What is the limit of attachment.
2) How can i fix the above error?
Please give me an idea,if you have the solution.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
现代 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:
你无法“修复”这个问题。这似乎是您的服务器不允许您发送如此大的附件。除非您可以控制服务器并能够更改该限制,否则您无能为力。我能想到的唯一替代方案是通过 http 或 ftp 提供附件并链接到附件。
You can't "fix" that. This seems like your server just doesn't allow you to send such huge attachments. Unless you've got control over the server and are able to change that limit there's nothing you can do. Only alternatives I could think of would be providing the attachments through http or ftp and linking to the attachments instead.