{"id":101306,"date":"2019-04-09T09:31:30","date_gmt":"2019-04-09T09:31:30","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/resize-wp-mail-attachments\/"},"modified":"2022-06-23T15:56:13","modified_gmt":"2022-06-23T15:56:13","slug":"resize-wp-mail-attachments","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/resize-wp-mail-attachments\/","author":13642574,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.2","stable_tag":"trunk","tested":"6.0.16","requires":"","requires_php":"5.3","requires_plugins":"","header_name":"Resize WP Mail Attachments","header_author":"Patabugen","header_description":"Resizes image attachments being sent to fit within the PostMark 10mb limit. Should actually work with any wp_mail() implementation.","assets_banners_color":"f4f4f4","last_updated":"2022-06-23 15:56:13","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/www.mha.systems","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1367,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2065671,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2065671,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-772x250.png":{"filename":"banner-772x250.png","revision":2065671,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[],"plugin_category":[],"plugin_contributors":[139228],"plugin_business_model":[],"class_list":["post-101306","plugin","type-plugin","status-publish","hentry","plugin_contributors-patabugen","plugin_committers-patabugen"],"banners":{"banner":"https:\/\/ps.w.org\/resize-wp-mail-attachments\/assets\/banner-772x250.png?rev=2065671","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/resize-wp-mail-attachments\/assets\/icon-128x128.png?rev=2065671","icon_2x":"https:\/\/ps.w.org\/resize-wp-mail-attachments\/assets\/icon-256x256.png?rev=2065671","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>All email providers have a maximum email size. Postmark - for example - have a hard limit of 10mb.<\/p>\n\n<p>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.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload the plugin directory <code>resize-wp-mail-attachments<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory or install it directly from the Wordpress plugin directory.<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>The plugin automatically starts working - there is no admin or settings screens. See Frequently Asked Questions if you'd like to change any settings.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20do%20i%20change%20the%20size%20limits'><h3>How do I change the size limits<\/h3><\/dt>\n<dd><p>You can use these filters to customise settings, here the filter names are listed with their defaults.\nresize_wp_mail_attachments_max_total_size = 10 (megabytes)\nresize_wp_mail_attachments_fit_max_attempts = 5\nresize_wp_mail_attachments_fit_reduction_amount = 0.98<\/p>\n\n<p>For exampple, to set the email size to 25mb add code like this to your functions.php:<\/p>\n\n<pre><code>    add_filter('resize_wp_mail_attachments_max_total_size', function(){ return 25; });\n<\/code><\/pre><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.2<\/h4>\n\n<ul>\n<li>Tested on WordPress 6<\/li>\n<\/ul>\n\n<h4>1.1<\/h4>\n\n<ul>\n<li>Fixed: Path does not include directory separator<\/li>\n<\/ul>\n\n<h4>1<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Attempts to auto-resize the attachments of emails sent via wp_mail() in order to fit them within a predefined limit.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/101306","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=101306"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/patabugen"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=101306"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=101306"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=101306"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=101306"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=101306"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=101306"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}