Given that swiftmailer is unsupported, then sites need a drop-in replacement that is the minimum possible change.
LegacyEmailBuilder
into the symfony_mailer module - it will be used in both "replace" and "plug-in" modes of operation.LegacyMailerHelper
. Move in the code from LegacyEmailBuilder::emailFromArray()
, splitting out the part for the body into a separate function formatBody()
. Create another function mail()
taking code from MailManagerReplacement::mail().SymfonyMailer
of type @Mail which maps directly onto functions from LegacyEmailBuilder
.Equivalence of swiftmailer code:
hook_swiftmailer_alter()
as it takes the swiftmailer specific class. We could probably support hook_swiftmailer_attach()
, it could be an EmailProcessor.Closed: outdated
1.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.