Join efforts on Symfony Mailer and deprecate PHPMailer SMTP?

Created on 15 May 2023, over 1 year ago
Updated 25 May 2023, over 1 year ago

Problem/Motivation

To make it short, wouldn't it be better to have one full-featured HTML mailing module based on Symfony Mailer with several active maintainers instead of several ones with few active maintainers?

As Swiftmailer is deprecated, https://www.drupal.org/project/symfony_mailer is the replacement. It still doesn't feel perfect, especially the UX / SBX is complicated (at least for me), but that might be solvable.

So it's just an idea for now to discuss here for the maintainers. It absolutely like PHPMailer SMTP, no bad intentions. Just an idea to improve the situation for users and maintainers.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Closed: won't fix

Version

2.2

Component

Miscellaneous

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

  • Issue created by @Anybody
  • 🇦🇺Australia imclean Tasmania

    Thanks for your interest @Anybody. There are a few differences between the modules and their goals.

    PHPMailer SMTP

    • Integrates the PHPMailer library with Drupal's mail system for sending email via SMTP
    • Is lean, just doing what it needs to and leveraging the PHPMailer library as much as possible
    • Works now, with every module which sends email
    • Will only ever send email via SMTP, nothing else

    Drupal Symfony Mailer

    • Integrates the Symfony Mailer package with Drupal
    • Can send email over a number of different transport protocols
    • Replaces Drupal's current mail system
    • Module specific code is required to support sending modules (newsletters, webform etc.)
    • Because of the above, it is quite a bulky module
    • Possibly the future of Drupal's email subsystem

    I don't see this module and Symfony Mailer as competitors, they can both send email but beyond that they are quite different. I still see a need to have a simple, robust solution for sending email via SMTP right now.

    The plan is to maintain this module for as long as it's required. I doubt there will be any more features added so as times change people will migrate to whatever is the best solution for them.

    Email services (Sendgrid, Mailgun etc.) are recommending the use of their REST APIs to send email, as are some hosting platforms. There are specific modules now for both of those services and others. I see Symfony Mailer can send email using a number of third party libraries, so this is probably where things are heading.

    In short, maintaining this module doesn't take up a lot of time and at the moment it's very useful for some people's needs.

  • 🇦🇺Australia imclean Tasmania

    Will only ever send email via SMTP, nothing else

    And format HTML email with support for attachments.

  • Status changed to Closed: won't fix over 1 year ago
  • 🇩🇪Germany Anybody Porta Westfalica

    Thank you very very much for the detailed reply and clarification, @imclean. It's so useful that you could discuss to put the comparison onto the module page or into the README perhaps?

    So I'll close this won't fix due to the given clear reasons! :) Thanks!

  • 🇦🇺Australia imclean Tasmania

    The project page is long enough as it is and I'm not keen on confusing things by adding a comparison with one specific module which isn't quite ready for prime time. People are already installing multiple/duplicate email modules simply because they see them mentioned somewhere. I'll add a link to this discussion, however.

  • 🇦🇺Australia imclean Tasmania

    As I mentioned in #2, many email services are recommending the use of their APIs instead of SMTP for sending email. The Pantheon hosting platform also recommends this approach.

    There are a few modules for specific services. This is an incomplete list, but it gives you an idea of what's out there.

    Then there's Drupal Symfony Mailer , which replaces the current mail system. Check the issue queue for compatibility with other modules.

    It can use other transports via third party providers: https://symfony.com/doc/current/mailer.html#using-a-3rd-party-transport

Production build 0.71.5 2024