Swift Mailer to Symfony Mailer - Will Swift Mailer continue to work?

Created on 12 January 2022, about 3 years ago
Updated 2 October 2023, over 1 year ago

I'm seeing the "The Swift Mailer library is no longer maintained." in my status pages.

Will Swift Mailer continue to work, understanding to there will be no more updates?

I see Symfony Mailer is the suggested replacement. Is there any documentation on the migration process from Swift to Symfony? I'm not quite sure on the process of making the switch.

πŸ’¬ Support request
Status

Fixed

Version

2.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States 3cwebdev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡§πŸ‡¬Bulgaria pfrenssen Sofia

    I looked into Symfony Mailer for an existing project, but it is not a drop-in replacement like is advertised on the project page. It works in a completely different way.

    • Swift Mailer is a simple implementation of a standard mail handler. It has a handful of classes and is stable and battle tested.
    • Symfony Mailer does a massive overhaul of how mail works in Drupal. It has a huge number classes and introduces a whole new ecosystem of plugins and mail processors. There is no stable release.

    It's probably great for new projects, but on existing projects it can be difficult to upgrade, especially when a project has a large number of mails handled in custom code and covered by unit tests. We ended up writing our own custom mail handler instead.

    I wonder if it would be a good idea to turn Swift Mailer into a sort of Symfony Mailer Light, and create a 3.x branch that swaps out the Swift Mailer library with Symfony Mailer, while retaining the rest of the code base largely identical?

  • πŸ‡§πŸ‡¬Bulgaria pfrenssen Sofia
Production build 0.71.5 2024