Make WordPress Core

Opened 5 years ago

Closed 5 years ago

#50440 closed defect (bug) (fixed)

ICS email attachment files missing MIME type

Reported by: bizzthemes's profile BizzThemes Owned by:
Milestone: 5.5 Priority: normal
Severity: normal Version: 5.4.2
Component: External Libraries Keywords:
Focuses: Cc:

Description

Add MIME type for .ics files inside "wp-includes\class-phpmailer.php", function "_mime_types".

This should be pretty simple. Add the following to the function "_mime_types" (line 3533):

<?php
'ics'   => 'text/Calendar'

The main issue is that not all email clients can read these files correctly, since the .ics file are not assigned a correct mime type. For instance, gMail does not detect all events in the .ics file because of this and only detects the first one.

Change History (1)

#1 @SergeyBiryukov
5 years ago

  • Component changed from Mail to External Libraries
  • Keywords needs-patch removed
  • Milestone changed from Awaiting Review to 5.5
  • Resolution set to fixed
  • Status changed from new to closed

Hi there, welcome to WordPress Trac! Thanks for the report.

PHPMailer was updated to version 6.1.6 in [48033] / #41750.

The current version does include the MIME type for .ics, so I'm closing the ticket as fixed in WordPress 5.5.

Note: See TracTickets for help on using tickets.