[wp-trac] [WordPress Trac] #28059: Inline image attachments with wp_mail()

WordPress Trac noreply at wordpress.org
Mon Jun 30 17:21:03 UTC 2025


#28059: Inline image attachments with wp_mail()
-------------------------------------------------+-------------------------
 Reporter:  jesin                                |       Owner:  (none)
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:
Component:  Mail                                 |     Version:
 Severity:  normal                               |  Resolution:
 Keywords:  has-patch needs-testing needs-unit-  |     Focuses:
  tests has-test-info needs-dev-note             |
-------------------------------------------------+-------------------------

Comment (by iamadisingh):

 == Test Report
 === Description
 This report validates whether the indicated patch works as expected.

 Patch tested: https://github.com/WordPress/wordpress-develop/pull/9038

 === Environment
 - WordPress: 6.8.1
 - PHP: 8.2.27
 - Server: nginx/1.26.1
 - Database: mysqli (Server: 8.0.35 / Client: mysqlnd 8.2.27)
 - Browser: Chrome 138.0.0.0
 - OS: macOS
 - Theme: Twenty Twenty-Five 1.2
 - MU Plugins: None activated
 - Plugins:
   * Test Reports 1.2.0
   * WP Mail Embed Showcase 1.0.0
   * WP Mail SMTP 4.5.0

 === Actual Results
 1.  ✅ Issue resolved with patch.

 === Additional Notes
 - Activated the wp-mail-embed-showcase.php plugin mentioned by @SirLouen
 https://raw.githubusercontent.com/SirLouen/wp-mail-embed-
 showcase/refs/tags/1.0.0/wp-mail-embed-showcase.php
 - Modified the plugin code to check for `image/gif`
 - Able to embed following mime types:
    - `image/gif`
    - `image/png`
    - `image/svg+xml`

 === Supplemental Artifacts
 Before Patch Screenshot: https://ibb.co/pBfx4NBr
 After Patch Screenshot: https://ibb.co/Z6w1ZYyW

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/28059#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list