Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Gerhard's talk on implementing a mail API for Drupal core. Will be linked to presentation.
Notes
Please insert your notes below.
Boris Mann
I'd really like to see other mail functions included. From my point of view, this would include:
- default filter for HTML to text; ideally, a setting as part of mail.module to select a filter. Individual mail modules might use this default setting and/or override it with their own setting
- attachment handling: an easy way to pass in N file paths, and the mail.module takes the heavy lifting of combining
- multi-part message handling and/or default email sending: a setting that chooses between plain text, HTML, and mixed multi-part
Roland Tanglao
Robert Castelo
The mail.inc already includes code which converts HTML to nicely formatted plain text, taken from my html2text module.
I'd prefer for that code to be a separate include file in the core rather than part of mail.inc, as it will be used by more than just mail modules (e.g. sms), but either way it will be available in core ;-)