最大电子邮件正文大小

Maximum Email Body Size

我不确定这应该是这里的问题还是某个堆栈溢出论坛上的问题。如果是这种情况,请告诉我是否有办法将其移动到那里。

所以我在我的组织中处理电子邮件模板。在查看新项目的一个需求时,我们意识到一旦将其部署到生产环境中,正文的内容将会非常庞大​​。但是,我们不确定 "huge" 是如何允许的?您可以在 HTML 电子邮件中发送多少字节内容有某种最大限制吗?

请注意,我这里说的不是附件,而是实际的电子邮件正文。

非常感谢任何帮助。

这很可能会因电子邮件提供商而异。快速 google 搜索有关 gmail 的结果如下:https://www.lifewire.com/message-and-attachment-size-limits-in-gmail-1172012

"Gmail processes messages up to 25 MB in size. This limit is applied to the sum of the message's text and the encoded attachment.Typically, encoding makes the size of the file grow slightly.Messages exceeding the limit sent to your Gmail account will bounce back to the sender. Messages larger than 25 MB that you try to send from Gmail will yield an error."

您将必须对您想要支持的每个电子邮件提供商进行研究。

  • 根据 Mailchimp 对此的研究 here
  • ,GMail 通常会将内容剪切为 102kb 左右
  • 基于@tadman , it looks like the SMTP server can reject receipt of the message based on the ESMTP SIZE 属性

电子邮件的像素大小通常在 600 像素左右,有些可达 700 像素。

也就是说,您希望将电子邮件的大小保持在 尽可能小 以确保它被尽可能多的人看到。 500k 是一个很好的经验法则,甚至 1 mb 也可以。我什至将它扩展到 2 mb。

原因是现在大多数人都是在移动设备上阅读他们的大部分电子邮件。

SMTP 协议中没有为邮件正文定义技术限制https://www.rfc-editor.org/rfc/rfc1870

这完全取决于您使用的客户端和服务器实现。