Support Symfony Mailer

Created on 20 January 2022, almost 3 years ago
Updated 17 August 2024, 4 months ago

Problem/Motivation

Symfony_mailer β†’ is the future of HTML email in Drupal now that Swiftmailer is end of life.

It uses new modern mail APIs, bypassing core and mailsystem's mechanisms. Therefore emails it sends will not be logged by maillog.

Proposed resolution

Hook into emails sent by symfony_mailer and log them.

Remaining tasks

tbd

User interface changes

None.

API changes

tbd

Data model changes

None.

✨ Feature request
Status

RTBC

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom jonathanshaw Stroud, UK

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.

  • Status changed to RTBC almost 2 years ago
  • πŸ‡ΈπŸ‡ͺSweden twod Sweden
  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Could one of the people who worked on this please respond to jonathanjfshaw's comments on the merge request? Thank you.

  • πŸ‡·πŸ‡ΊRussia niklan Russia, Perm

    I think plugin should be automatic by automatic = TRUE,:

     * @EmailAdjuster(
     *   id = "maillog",
     *   label = @Translation("Maillog"),
     *   description = @Translation("Use Maillog handling."),
     *   weight = 100000,
     *   automatic = TRUE,
     * )
    

    Currently, to make it work, you have to add it manually, and this is stored in configuration, means, that you have to bring maillog to production because of that plugin. By making it automatic, Symfony Mailer will include it for every email and won't affect any configuration changes. Anyway this is controller by Maillog settings, not by adjuster.

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    We need to add this to the next release.

  • πŸ‡ΊπŸ‡ΈUnited States DamienMcKenna NH, USA

    Having thought through it a bit for a while, I think moving entirely to Symfony Mailer β†’ and then using Symfony Mailer Log β†’ is the best long term plan for the Drupal community. As such, I don't see any reason to add Symfony Mailer support to Maillog.

Production build 0.71.5 2024