Add support to attachments for LegacyEmailBuilder

Created on 4 June 2022, over 2 years ago
Updated 22 May 2023, over 1 year ago


Problem/Motivation

Legacy emails commonly list attachments in $params['attachments']. We can support these by converting to Symfony Mailer attachments.

Proposed resolution

Roughly based on SwiftMailer::mail().

Remaining tasks

  1. Some code - possibly older - uses $params['files'] and $params['images']. We won't implement this at first, however
  2. The implementation uses the default Symfony MIME type guesser which is potentially slightly different from the Drupal one. If needs be we could later change this.

User interface changes

API changes

Data model changes

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom adamps

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.

Production build 0.71.5 2024