Issue
Symptoms:
Cause
Some clients allow the creation of different HTML and text part on the emails. When received, incoming emails are treated differently depending on the content type.
Given the HTML content, most clients will automatically create a text version. In that case, each HTML and text version is extracted from the incoming email and there is no need to generate either content. However, if the HTML content exists and the text version is not available, it is generated automatically. Similarly, if only the text content exists and the HTML version is not available, it is generated automatically.
Incoming email content type |
Email body_html |
Email body_text |
Reason |
text/plain |
Generated |
Extracted from email if available |
Because the HTML text is not available, it is generated based on the body_text |
text/html |
Extracted from email if available |
Generated |
Because the TEXT version is not available, it is generated by stripping the HTML tags |
Multipart |
Extracted from email if available or generated |
Extracted from email if available or generated |
The available types text/plain or text/html are extracted on the multipart section |
Resolution
If you depend on the email body (HTML), ensure that clients are sending the text/html content correctly. If you depend on the body text, ensure that clients are sending the text/plain content on the emails.
Note: Validate whether the differences come from automatic systems integrating by email. |