Make WordPress Core

Opened 20 months ago

Closed 5 months ago

Last modified 4 months ago

#60995 closed enhancement (duplicate)

WP Mail: support for a plain-text version when sending a html body

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

Description

Currently, WP Mail supports sending emails with HTML formatting. While this is beneficial for creating visually engaging content, it overlooks a crucial aspect of email communication: accessibility. Many users rely on plain-text emails due to limitations in their email clients, screen reader usage, or personal preference. Without a plain-text alternative, these users may encounter difficulties in accessing and comprehending the content of HTML emails.

Therefore, I propose the implementation of support for sending a plain-text version alongside the HTML body in WP Mail. This enhancement would offer several significant benefits:

Accessibility: Including a plain-text version ensures that all recipients, regardless of their email client or assistive technology, can access and understand the content of emails sent from WordPress sites.

Compliance: Providing a plain-text alternative aligns with accessibility standards such as the Web Content Accessibility Guidelines (WCAG), ensuring WordPress remains inclusive and compliant with regulatory requirements.

Improved Deliverability: Some email servers and spam filters prioritize plain-text emails over HTML emails, potentially increasing the deliverability of emails sent from WordPress sites.

User Choice: Offering both HTML and plain-text versions empowers users to choose their preferred email format based on their individual needs and preferences.

Integrating this feature into WordPress Core would enhance the platform's usability, inclusivity, and compliance with accessibility standards.

Change History (2)

#1 @SirLouen
5 months ago

  • Resolution set to duplicate
  • Status changed from new to closed

What you are asking here basically is for multipart/alternative support. For how is currently WordPress working under the hook, the main problem seems to be related to PHPMailer and it has been already reported upstream, and this has become essentially a duplicate of #15448

The thing is that also in that ticket is being discussed the possibility of adding an alternative to be supported immediately without the need of changes upstream (with a key/value array for the multipart).

If PHPMailer sorts out the multipart problem, this will be sorted also automatically. But if that patch in #15448 happens to be merged, we will also have an alternative solution. Whatever comes first.

I hope we can achieve this before 6.9 release. Stay tuned to the other report.

#2 @peterwilsoncc
4 months ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.