When an email is sent to an Email-to-Case or email service address, and that email contains an HTML file attachment, Salesforce rejects the email and does not create a case. The automated case user receives an error email with the following message:
HTML_FILE_UPLOAD_NOT_ALLOWED: Your organization has disabled uploads of this file type.
This error occurs because the org's File Handling Options are configured to block HTML file uploads as attachments or document records.
This error is triggered when the File Upload and Download Security settings in Salesforce are configured to "Don't allow HTML uploads as attachments or document records." HTML file attachments in incoming emails are subject to these org-level security settings.
To allow HTML file attachments to be processed by Email-to-Case, update the File Upload and Download Security settings:
After saving, emails with HTML file attachments will no longer be rejected by Email-to-Case.
Note: Review your organization's security policies before changing this setting. Allowing HTML uploads may introduce security risks if the HTML files come from untrusted senders. See Configure File Upload and Download Security Settings.
000386561

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.