Accepting Files Via Email
Inboxes can be used to receive files from email attachments. Your site provides settings that affect whether and how an Inbox handles incoming emails.
Enabling Email Uploads to an Inbox
When your Inbox allows uploads via email, any application, system, or person can send files directly to your inbox. When the behavior is enabled, a unique email address is generated for this inbox. Anyone with the address can then upload by sending an email attachment, unless you restrict the allowed senders to specific addresses or domains.
CRM, ERP, or HRMS applications can upload files directly to the inboxes using the email address. Users can forward emails with attachments to this email address in the To, Cc, or Bcc fields.
Files attached to each email are stored in the inbox folder. Inboxes route email uploads into automatic subfolders by default. Files with the same name follow the site's overwrite behavior. If the email body contains embedded images or images in the email signature, those images are uploaded to the inbox along with the other email attachments.
Choosing Which Email Content to Save
Choose the capture format for the application that will process the email. On an email-enabled Inbox, the capture settings appear on the Inbound Email Settings tab:
| Setting | Filename field and default | Contents and use |
|---|---|---|
| Save Inbound Email Body Content to a Text File | Text Body Filename: _body.txt | Saves the plain-text body when the email supplies one, falling back to HTML for an HTML-only message. Use it for processes that need the message body without the complete email. |
| Save Inbound Email HTML Body to a File | HTML Body Filename: _body.html | Saves the supplied HTML, preserving its table structure and formatting for a process that reads HTML. An email without a nonempty HTML body creates no HTML capture; plain text is not converted to HTML. |
| Save Complete Inbound Email to an .eml File | Complete Email Filename: _email.eml | Saves the complete received message, including headers, body, and attachments. Use it with email tools or an existing process that reads .eml files and uses information such as the sender or subject. It can save a message with no attachments or body. |
To enable a capture on an existing Inbox, select Edit on its row and choose to save that content. The filename field is required; keep the default or enter a filename template, then save the setting. Choosing not to save the content turns that capture off.
When creating an Inbox that accepts email, all three choices appear under Submissions Handling > Email Content to Save. Selecting a capture's checkbox shows its required filename field, with the same default listed above.
Each filename field accepts a fixed name or a template using the same email placeholders as the subfolder template: sender display name {{name}}, email address {{email}}, domain {{email_domain}}, subject {{subject}}, and date and time formats. For example, {{email_domain}}_%Y-%m-%d_{{subject}}.eml names a saved complete email by the sender's domain, submission date, and subject.
Date and time values use the submission time in the Inbox's shared template time zone, or UTC if none is selected. This time zone applies to both subfolder and saved-email filename templates.
Each template names a single file in the submission folder. Files.com cleans placeholder values for use in that filename and shortens generated names to at most 255 characters, or further to fit the destination path, preserving the extension when it fits. Missing placeholder values contribute empty text; an empty or unusable result uses the corresponding default filename listed above.
HTML body and complete-email capture are off by default. Each can be enabled independently, alongside the existing body capture. Attachments are still saved separately under their own filenames, including when the complete email also contains them.
Captured files use the same submission folders as attachments and follow the same overwrite behavior, automatic renaming, and upload restrictions. These overwrite rules also apply when different emails generate the same filename.
For an HTML-only email, enabling both body capture and HTML capture saves the same HTML through both choices. Use distinct filenames when you want to keep both files.
Message Size Limits
Inboxes accept email messages as large as 40MB. The limit applies to the total size of the email, including any attachments or embedded images. If an email larger than 40MB is sent to your inbox, the sender receives the message "Your message is larger than the size limit for messages. Please make it smaller and try sending it again.".
The 40MB limit cannot be raised, because it is enforced by our mail services provider. If your contact needs to deliver a file larger than 40MB, enable web uploads for your inbox and direct your contact to upload through a web browser. If the message is large due to multiple attachments, the contact can send multiple emails to your inbox with separate attachments that each fit below the 40MB size limit.
Some mail providers enforce size limitations below 40MB. GMail and Yahoo Mail limit messages to 25MB, and iCloud Mail has a limit of 20MB. Check the specific documentation for the mail provider if your contact receives an error related to the message size when sending to your inbox.
Handling Auto-Forwarding Verification Emails
Auto-forwarding lets you redirect mail from an address you control to your Inbox address. When you add a forwarding destination, some email providers send a one-time verification email with a confirmation link before activating forwarding. Forwarding does not activate until the link is clicked.
Because Inboxes don't save email body content by default, the confirmation link in that email won't be accessible. Enable Save Inbound Email Body Content to a Text File on your Inbox before setting up forwarding so that when the verification email arrives, its body is saved as a file containing the confirmation link.
To set up auto-forwarding:
- Enable Save Inbound Email Body Content to a Text File in your Inbox settings.
- Configure the forwarding rule in your email provider, using your Inbox email address as the destination.
- When the verification email arrives, open the saved body file from your Inbox folder and retrieve the confirmation link.
- Once forwarding is active, you can disable Save Inbound Email Body Content to a Text File if you don't need body content saved from regular forwarded emails.
Pre-Requisites for Inbox Email Uploads
Your inbox cannot require a password and allow email uploads, because the sender cannot provide a password via email. To limit uploads to the right people, enable inbound email authentication for your site, then whitelist the addresses or domains you want to allow.
Inboxes cannot collect registration information through email, so you cannot require registration on an Inbox that allows email uploads. If your Inbox requires registration, you cannot enable email uploads.
Interactions with Other Features
Inboxes are always associated with a folder in your Files site, so folder settings and site settings affect how files emailed to the inbox are stored. The Inbound Emails Log describes what happened with each received email, so you can determine how and why particular files were affected by your configuration.
Email Upload Subfolder Paths
Inboxes route email uploads into automatic subfolders by default. A naming template lets you group those uploads by sender, subject, or submission time.
You can disable this behavior with the Do not create subfolders for inbound email uploads to this inbox setting. We do not recommend disabling automatic subfolders. Repeated filenames are common in email-based workflows, and if your site allows overwrites, new files with the same name overwrite old files.
The Subfolder Name Template defines names for automatic subfolders using literal text and values from the inbound email. Supported placeholders include the sender's display name {{name}}, the sender's email address {{email}}, the sender's email domain {{email_domain}}, the email subject {{subject}}, and time-based placeholders.
For example, %Y-%m-%d_{{subject}} groups uploads by submission date and email subject. Subject text is cleaned for use in folder names. A missing subject contributes empty text; an empty result uses the default submission folder name.
Repeated subjects can put multiple emails in the same subfolder. Combine the subject with sender or time placeholders when those distinctions should separate submissions. If two files land in the same destination folder with the same name, the site's Overwrite behavior determines the outcome.
For an Inbox accepting both email and web uploads, both submission methods share the template. Web uploads use registration values and supply an empty value for the email subject.
Attachment Filenames
Each attachment received by an Inbox is stored under a single filename. Files.com replaces forward slashes (/), backslashes (\), and Unicode characters that compare as either separator with hyphens (-). For example, INV 12/2026.pdf becomes INV 12-2026.pdf, and report/notes.txt becomes report-notes.txt. This preserves both parts of the name in one filename, while the Inbox's destination settings determine the folder where it is stored.
If the resulting name is empty or compares as empty, . or .., Files.com assigns an attachment-N name, such as attachment-1. This conversion happens when Inbox email attachments arrive and does not rename files already stored. The file naming rules still apply to the stored name.
When configuring processing for files received through an Inbox, account for this conversion and any automatic renaming configured on the destination folder.
Overwrite Behavior
Uploading files via email with duplicate names follows the site's Overwrite behavior. Within a single email, attachments that arrive with the same filename are not stored separately: Files.com keeps only the largest of them. This also applies when different attachment names become the same filename after conversion and arrive in the same destination folder.
If the setting is Automatically append numbers to conflicting file names, duplicate files uploaded through email to the inbox are automatically renamed. Saved body files and complete-email files follow the same behavior.
If the site's Overwrite behavior setting is Allow files to be overwritten, but ask first, duplicate file names are overwritten. The system cannot prompt the email uploader for permission on each file.
Automatically Renaming Uploads
Enabling the feature to automatically rename files uploaded to a folder also affects files saved through the email interface. This applies to attachments, saved body files, and complete-email files.
Organize Files Into Subfolders
If you enable the feature to automatically organize uploads into subfolders for the inbox folder, successfully uploaded attachments, saved body files, and complete-email files are placed into a subfolder of the inbox folder.
This folder setting is separate from the Inbox setting that routes email uploads into subfolders using a destination path template.
Limiting What Can Be Uploaded
Any rules that limit the types of files that can be uploaded to a folder also apply to email attachments sent to the inbox. This includes limiting uploads by filename length, by file extension, or by regular expression.
Saved body files and complete-email files are also subject to these restrictions. For example, a complete email named message.eml is not stored if the destination folder allows only PDF files, even when the email's PDF attachments can be stored.
Disabling Web Access
If your inbox is integrated into an automated workflow where a third-party application or system uploads files via email, the best practice is to use the inbox exclusively for email and block web access.
Email sender restrictions apply only to files received by email. The Inbox web page is a separate upload path with its own access controls. If your workflow relies on submissions from approved email senders, disabling browser uploads keeps every submission subject to the email checks.
To receive files only through email, enable Disallow web browser uploads to this inbox in the Inbox's Settings tab. While enabled, this setting blocks access to the Inbox web page and prevents browser uploads, including uploads through associated Share Links.
Turning off email uploads also turns off Disallow web browser uploads to this inbox, so web uploads resume under the Inbox's other access controls. Enabling Require registration has the same effect: it turns off email uploads and restores web access, because registration information must be collected through the web.
Through the API, you can set disable_web_upload to true to close web access on any Inbox, including one that has never accepted email uploads. This lets you close web access without deleting the Inbox or enabling email uploads.
Restricting Who Can Email Files to an Inbox
A Site Administrator controls Enable inbound email authentication under Sharing > Sharing Settings. This site setting applies to Inboxes and Incoming Email triggers in Automations v2, including every Workspace-owned Automation on the site.
When enabled, Files.com uses SPF, DKIM, and DMARC results to authenticate each message's From domain before evaluating the configured sender restriction. A message that fails authentication is rejected even if its From address is allowed. Authentication does not scan attachments; to scan files received by email, apply Malware Scanning to the Inbox's folder.
Files.com matches the message's From address against the email addresses or domains you choose in the Inbox's Allow only these senders to upload via email setting. Enable inbound email authentication to configure this restriction in the Inbox settings. Messages from all other senders are rejected.
Your list can include up to 10 email addresses or email domains. An Automation uses its own Allowed Senders setting for the same choice; with that list empty, the Automation accepts any sender, subject to the site's inbound email checks.
When inbound email authentication is off, sender matching does not authenticate the From address. Someone who knows an Inbox's or Automation's email address can put an allowed address in From. Enable inbound email authentication as well as the sender restriction when only approved senders should be able to submit files.
Review your Inbound Email Logs to see the results of each email received.
Send a Receipt to Senders
Enable the Notify senders on successful upload via Email setting to send an acknowledgment receipt to the sender whenever a file is successfully stored from an inbound email to the Inbox. See Receipts to Uploaders for details on what the receipt contains and when failed uploads are excluded.