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

WordPress Trac noreply at wordpress.org
Thu Mar 26 12:31:03 UTC 2015


#31775: wp_mail attachments support only ascii symbols
-------------------------+-----------------------------
 Reporter:  Fike         |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Mail         |    Version:  4.1.1
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 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 [http://tools.ietf.org/html/rfc2047 standard].

 [https://core.trac.wordpress.org/ticket/28407 #28407] is tightly bound to
 this request.

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


More information about the wp-trac mailing list