Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Maximum Email Body Size

I am not sure if this should be a question here or question on some stack overflow forum. If that is the case, please let me know if there is a way to move it there.

So I work on email templates in my organization. While looking at one requirement for new project, we realized that content of the body is going to be huge once this is deployed to production. However, we are not sure how "huge" is allowed? Is there some kind of maximum limit on how much content in Bytes you can send in HTML email?

Please note I am not talking about attachments here but the actual email body.

Any help is very appreciated.

like image 938
LearningAsIGo Avatar asked May 18 '26 21:05

LearningAsIGo


2 Answers

  • GMail typically clips content at around 102kb as per Mailchimp's research around this here
  • Based on @tadman comment, it looks like the SMTP server can reject receipt of the message based on the ESMTP SIZE attribute
like image 52
brandon927 Avatar answered May 20 '26 17:05

brandon927


Most likely this is going to vary based on the email provider. A quick google search about gmail yielded this: 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."

Your going to have to do research for each email provider that you want to support.

like image 21
victor Avatar answered May 20 '26 17:05

victor