Make WordPress Core

Opened 9 years ago

Last modified 3 years ago

#31775 new enhancement

wp_mail attachments support only ascii symbols

Reported by: fike's profile Fike Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.1.1
Component: Mail Keywords:
Focuses: Cc:

Description (last modified by SergeyBiryukov)

Hi.
Currently wp_mail() passes it's attachments directly to PHPMailer, and that results in taking file basename as attachment name. Basename seems to behave not normal on non-ascii symbols, for example /сontacts.png (the first 'c' is russian) will be truncated as ontacts.png. Apart from that, even if it would be basename'd correctly, it won't be utf8-encoded as required by standard (=?utf-8?B?base64?=), and that will probably result in broken mails and/or rejected mails.

So i'm proposing to implement functionality for manual attachment naming and/or automatic basenaming filenames and encoding attachment names according to standard.

#28407 is tightly bound to this request.

Change History (3)

#1 @SergeyBiryukov
9 years ago

  • Description modified (diff)

#2 @cbutlerjr
8 years ago

Would resolving #28407 resolve this?

#3 @ocean90
3 years ago

#49033 was marked as a duplicate.

Note: See TracTickets for help on using tickets.