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.
By Berdir on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x
Issue links:
Description:
drupal_mail_system()
, which returns the mail system class for a given mail module and mail key combination, is now a service.
The default behavior is unchanged but this allows modules to replace the mail.factory
service, giving them for example the flexibility to return adapter class that uses diferent implementations for formatting and sending an e-mail.
Update (2014-02-27): This change record is obsolete after Mail backends are now annotated plugins, which replaced mail.factory
with plugin.manager.mail
.
Impacts:
Module developers