[wp-trac] [WordPress Trac] #31775: wp_mail attachments support only ascii symbols

WordPress Trac noreply at wordpress.org
Wed Aug 6 14:45:47 UTC 2025


#31775: wp_mail attachments support only ascii symbols
-------------------------+-------------------------
 Reporter:  Fike         |       Owner:  (none)
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:
Component:  Mail         |     Version:  4.1.1
 Severity:  normal       |  Resolution:  worksforme
 Keywords:               |     Focuses:
-------------------------+-------------------------
Changes (by SirLouen):

 * status:  new => closed
 * resolution:   => worksforme


Comment:

 == Reproduction Report
 === Description
 ❌ This report can't validate that the issue can be reproduced.

 === Environment
 - WordPress: 6.9-alpha-60093-src
 - PHP: 8.2.29
 - Server: nginx/1.29.0
 - Database: mysqli (Server: 8.4.6 / Client: mysqlnd 8.2.29)
 - Browser: Chrome 138.0.0.0
 - OS: Windows 10/11
 - Theme: Twenty Twenty-Five 1.3
 - MU Plugins: None activated
 - Plugins:
   * Testing Dolly
   * Test Reports 1.2.0

 === Testing Instructions

 1. Create a PDF name: `сontacts.pdf` (like in the OP Example)
 2. Use the 5th parameter of `wp_mail` to attach this file
 3. ✅ Attachment goes through perfectly.

 - Other filenames tests:
 ✅ 你好.pdf
 ✅ emoji-📄.pdf
 ✅ áéíóú.pdf

 === Actual Results
 1. ❌ Error condition not occurring.

 === Additional Notes

 - Given that this is not reproducible anymore, because the PHPMailer
 library's `addAttachment` method
 [https://github.com/PHPMailer/PHPMailer/issues/1736 was updated to support
 more encodings 6 years ago], this is not reproducible anymore. For this
 reason, I'm closing this as `worksforme`

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


More information about the wp-trac mailing list