Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Usage Milestone: Decoupled Router Module decoupled_router crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

Drupal Symfony Mailer Lite

19,719 sites Security covered Drupal 10–11
View on drupal.org

This module allows Drupal to send HTML-formatted emails and emails with attachments using the Symfony Mailer library. It is designed to be a direct replacement for the deprecated Swiftmailer module.

Drupal Symfony Mailer Lite integrates Drupal with the Symfony Mailer library, allowing for the sending of HTML-formatted emails and emails with attachments. This module is a direct successor to the Swiftmailer module, which has been deprecated because the Swiftmailer library is no longer maintained.

Requirements and Installation

This module requires the Mail System module. After installation, you should go to Configuration > Mail System on your site and assign Symfony Mailer Lite as either the default formatter and sender for emails, or assign it to specific modules and/or keys to only send specific emails with it.

Similar projects

Drupal Symfony Mailer: This project also allows the sending of HTML-formatted emails from Drupal using the Symfony Mailer library. However, it does much more than that, providing an alternative templating system and API for sending emails from Drupal.

Drupal Symfony Mailer Lite sends emails using the same approach as the Swiftmailer module. It’s designed to be a direct drop-in replacement for Swiftmailer.

Upgrading from Swiftmailer Module

To upgrade from the Swiftmailer module to Drupal Symfony Mailer Lite, you should:

  • Install this module using Composer.
  • Enable this module.
  • Go to Configuration > System > Mail System, and switch your default or module-level configurations for the formatters and senders from Swiftmailer to Drupal Symfony Mailer Lite and save your configuration.
  • If you have customized the swiftmailer.html.twig template, you should rename or copy that template to symfony-mailer-lite-email.html.twig.
  • If you have a custom swiftmailer library in your theme, you should rename or copy that library to one named symfony_mailer_lite.

Acknowledgements

The code in this module is largely based on code from the Swiftmailer and Drupal Symfony Mailer modules. Thank you to AdamPS and other contributors to those modules, which have made this module possible.

Depends on

Dependencies of the latest stable release

Required by

3 tracked projects depend on this one

Activity

Tracked releases
4
Tracked since
Nov 2024
Latest release
9 months ago
Releases (12 mo)
1 ▼ from 3
Maintenance
Slowing

Release Timeline

Releases

Version Type Core Release date
2.0.4 Stable 10–11 Nov 5, 2025
2.0.3 Stable 10–11 Jun 26, 2025
2.0.2 Stable 10–11 Nov 27, 2024
2.0.1 Stable 10–11 Nov 20, 2024