webform_attachment_manager
Webform Attachment Manager helps sites that send uploaded files through Webform email handlers by preventing oversized messages from failing unexpectedly.
The module estimates the final email size, including encoding overhead. When the configured delivery threshold would be exceeded, file attachments are removed from the outgoing email and replaced with download links instead.
This helps reduce mail delivery failures while still preserving access to the uploaded files.
Features
- Works with Webform email handlers
- Replaces oversized attachments with links
- Configurable size threshold
- Designed to reduce user confusion when submissions are saved but mail
transport fails
- Supports Drupal 10.3+ and Drupal 11
Post-Installation
After enabling the module:
1. Go to Structure -> Webforms > Configuration > Webform Attachment Manager.
2. Set the maximum delivery threshold for outgoing email.
3. Review the replacement message used when attachments are converted to links.
4. Test a Webform with file uploads to confirm the expected behavior for both smaller and larger attachments.
This module works alongside Webform email handlers and is intended for sites that email uploaded files as attachments.