Drupal 10 security support ends December 9, 2026.
Swift Mailer and Drupal 11: what to replace it with
The drupal/swiftmailer module has no Drupal 11 release, and its listing shows it as unsupported. If your site sends email through it, you have to move to another mailer before Drupal 11, and test every message type your site sends.
Check if you use it
composer show drupal/swiftmailer
drush pm:list --status=enabled | grep -i swift
drush config:get system.mail interface
If system.mail routes mail through Swift Mailer, it is the active mail system. Also search custom code for swiftmailer references. Paste your composer.lock into the scanner to see it classed as "no Drupal 11 release" with its cost.
The usual replacement
The common choice is the contributed Symfony Mailer module (drupal/symfony_mailer), which is built on the maintained Symfony Mailer library. Plan on these steps, on a copy of the site first:
- Install it on Drupal 10 and configure the transport (SMTP host, credentials, or sendmail) to match what Swift Mailer used.
- Recreate any per-message settings: from address, reply-to, HTML versus plain text, and any email theme templates.
- Send a test of every message your site produces: user registration, password reset, webform notifications, commerce receipts, and so on. Check headers, formatting and delivery.
- Switch the mail interface to the new module, uninstall Swift Mailer and remove it with Composer.
- Then move core to 11.
Confirm the current recommended replacement and its Drupal 11 release on the module's drupal.org page before you start, because recommendations change. Modules that depended on Swift Mailer, such as some webform and commerce mail handlers, need their own check; the atlas shows each one's status.
Scan your composer.lock: free, in your browser, fixed quote in 30 seconds
Related: Drupal 10 end-of-life guide · Upgrade cost · Requirements · Composer errors · Modules removed from core · Module atlas. Liftpatch is independent and not affiliated with the Drupal Association. Drupal is a registered trademark of Dries Buytaert.