Plugin info

Total downloads: 881
Active installs: 0
Total reviews: 0
Average rating: 0
Support threads opened: 0
Support threads resolved: 0 (0%)
Available in: 1 language(s)
Contributors: 1
Last updated: 6/23/2022 (1287 days ago)
Added to WordPress: 4/9/2019 (6 years old)
Minimum WordPress version: f
Tested up to WordPress version: 6.0.11
Minimum PHP version: 5.3

Maintenance & Compatibility

Maintenance score

Possibly abandoned • Last updated 1287 days ago

20/100

Is Resize WP_Mail Attachments abandoned?

Possibly abandoned (last update 1287 days ago).

Compatibility

Requires WordPress: f
Tested up to: 6.0.11
Requires PHP: 5.3

Languages

Similar & Alternatives

Explore plugins with similar tags, and compare key metrics like downloads, ratings, updates, support, and WP/PHP compatibility.

No similar plugins found yet.

Description

All email providers have a maximum email size. Postmark – for example – have a hard limit of 10mb.

For usability, it’s best not to ask your visitors to do their own image resizing. This plugin will automatically reduce any images (specifically anything which can be edited with the WP_Image_Editor) a little at a time to try and fit the limit.

Installation

  1. Upload the plugin directory resize-wp-mail-attachments to the /wp-content/plugins/ directory or install it directly from the WordPress plugin directory.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. The plugin automatically starts working – there is no admin or settings screens. See Frequently Asked Questions if you’d like to change any settings.

Frequently Asked Questions

How do I change the size limits

You can use these filters to customise settings, here the filter names are listed with their defaults.
resize_wp_mail_attachments_max_total_size = 10 (megabytes)
resize_wp_mail_attachments_fit_max_attempts = 5
resize_wp_mail_attachments_fit_reduction_amount = 0.98

For exampple, to set the email size to 25mb add code like this to your functions.php:

    add_filter('resize_wp_mail_attachments_max_total_size', function(){ return 25; });

Review feed

No reviews available

Screenshots

No screenshots available

Changelog

1.2

  • Tested on WordPress 6

1.1

  • Fixed: Path does not include directory separator

1

  • Initial release