Answers.Body: <p>body_text and body_html are the fields in the database that store these values, and the are of type 'longtext', which are of size 4Gb. So you're probably not hitting this limitation.</p>
  
  <p>More likely, it's your php.ini configuration that is limiting the size of your "posting" (i.e. post_max_size), or a mysql limitation (e.g. max_allowed_packet).</p>
  
  <p>It's also easy to put way too much bad html into these fields, particularly if you're copy/pasting from say, Word. If you take a look at your source, you might find a bunch of html you can and should remove.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-23T18:33:50.003Z
Answers.Text: Yes you are correct. This problem seems to be related to bad code. Although our code past a W3 test and mailchimp and various email client tests, it had nested tables and unnecessary code. We create a new template with clean code and it works fine. CiviMail is obviously much more sensitive than most email programs.
Answers.UserDisplayName: Nina Gonzalez
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-23T19:01:21.907Z
Answers.Text: Actually, your comment suggests that the technical aspect of the problem is your php or mysql settings, it's not a CiviCRM limitation you're running into. CiviCRM doesn't care about the quality or quantity of your html. But since it helped you remove some unnecessary code, I guess that's a good thing.
Answers.UserDisplayName: Alan Dixon
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-11-16T22:35:44.177Z
Answers.LastActivityDate: 2016-11-16T22:35:44.177Z
Answers.UserDisplayName: Alan Dixon
Body: <p>We have an html email message that won't save and it seems related to size. if we remove a table or a few characters, we can save. But once we hit this unknown limit, we can't save a blank space. We can't make any more changes.</p>
  
  <p>Anyone else run into this and know where the settings are to change this?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-16T21:24:51.733Z
Comments.Text: When you insert your code are you including the <html> & <body> tags? I have had similar issue intermittently. I have found if I only include only the HTML  for layout it works.
Comments.UserDisplayName: KilakwaBT
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2016-11-23T18:32:01.130Z
Comments.Text: Yes we have those tags.
Comments.UserDisplayName: Nina Gonzalez
Tags: <civimail>
Title: HTML Email won't save; related to size
ThreadText: # HTML Email won't save; related to size
  
  (Asked by: username_0 on 2016-11-16)
  
  We have an html email message that won't save and it seems related to size. if we remove a table or a few characters, we can save. But once we hit this unknown limit, we can't save a blank space. We can't make any more changes.
  
  Anyone else run into this and know where the settings are to change this?
  
  **Tags:** civimail
  
  > **Comments:**
  > **username_1**: When you insert your code are you including the <html> & <body> tags? I have had similar issue intermittently. I have found if I only include only the HTML  for layout it works.  
  > **username_0**: Yes we have those tags.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_2 on 2016-11-16. Score: 2 | Accepted answer
  
  body\_text and body\_html are the fields in the database that store these values, and the are of type 'longtext', which are of size 4Gb. So you're probably not hitting this limitation.
  
  More likely, it's your php.ini configuration that is limiting the size of your "posting" (i.e. post\_max\_size), or a mysql limitation (e.g. max\_allowed\_packet).
  
  It's also easy to put way too much bad html into these fields, particularly if you're copy/pasting from say, Word. If you take a look at your source, you might find a bunch of html you can and should remove.
  
  > **Comments:**
  > **username_0**: Yes you are correct. This problem seems to be related to bad code. Although our code past a W3 test and mailchimp and various email client tests, it had nested tables and unnecessary code. We create a new template with clean code and it works fine. CiviMail is obviously much more sensitive than most email programs.  
  > **username_2**: Actually, your comment suggests that the technical aspect of the problem is your php or mysql settings, it's not a CiviCRM limitation you're running into. CiviCRM doesn't care about the quality or quantity of your html. But since it helped you remove some unnecessary code, I guess that's a good thing.  
  
  ---
  
  