Opened 5 years ago
Closed 4 years ago
#49033 closed defect (bug) (duplicate)
PHPMailer "basename"
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Keywords: | ||
Focuses: | Cc: |
Description
When sending attached files in Cyrillic encoding, the file name is truncated. This is because in class "PHPMailer", functions "addAttachment" use "basename". Maybe you should use the WordPress feature in this place wp_basename.
For example, when sending a file through function wp_mail, we specify the file name / path / Файл.pdf - As a result, the file reaches the addressee ".pdf"
Change History (3)
Note: See
TracTickets for help on using
tickets.
Hi there, welcome to WordPress Trac! Thanks for the ticket.
To clarify a bit, PHPMailer is an external library, so
wp_basename()
cannot be used there. Some other solution would need to be explored.