  You're browsing the documentation for an old version of SupportPal. Consider upgrading to the [latest version](https://docs.supportpal.com/current/Troubleshoot+Importing+Large+Emails). 

# Troubleshoot importing large emails

## Problem

A large email (of many MB in size) fails to import into the help desk.

## Cause

Your configured PHP or MySQL resource allocation is too small.

## Resolution

### PHP

1. Ensure `upload_max_filesize` is larger than the file
2. Ensure `memory_limit` is larger than `upload_max_filesize`, it should be several times larger

### MySQL

1. Ensure `<a href="https://dev.mysql.com/doc/refman/5.7/en/server-system-variables.html#sysvar_max_allowed_packet" target="_blank">max_allowed_packet</a>` is larger than the raw contents of the email