Install
Works with Drupal: ^10.3 || ^11 || ^12Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
38.77 KB
MD5: 8b0f2c516212db27cbc149664507d6e2
SHA-1: 7527ee768bfe4117d9a131609be206fbc5d9e862
SHA-256: 9d03528e31df7b64b48ce447bd3d5b2cb2774ef3e53bfa751a07b1aa82a7b567
Download zip
60.39 KB
MD5: 27cf377a5f4d15581a942219df44f57a
SHA-1: e16a98251d8e03efeb35ddd11a010e77769d0fbd
SHA-256: 76feea413af41175c36617d4f2d92410c1eed6e764567bdb6e2026b7996cb36c
Release notes
Drupal 12 support for Magic HTML Mail, plus fixes from the security coverage application review.
New
- Drupal 12 compatible:
core_version_requirementis now^10.3 || ^11 || ^12. The module's tests pass on Drupal 12, and CI now runs them there on every commit. SettingsForm::create()declares astaticreturn type, as Drupal 12 asks.- Added
SECURITY.mdcovering how to report issues, supported versions and the security model.
Drupal 12 and the transport submodules
The two transport submodules declare Drupal 12 support, but they cannot run there until the modules they extend do:
- Magic HTML Mail: Symfony Mailer needs Drupal Symfony Mailer, which requires Symfony 6 or 7. Drupal 12 ships Symfony 8.
- Magic HTML Mail: Amazon SES needs Amazon SES, whose AWS module dependency has a fatal error on Drupal 12.
On Drupal 12, the transports need unreleased fixes; see the README's Drupal 12 section.
Fixes
- Body lines are treated as HTML the way core's PhpMail does. The plain-text part is
htmlToText()of the body, and the HTML paragraphs are built from that text. Escaped tokens (such asO'Brien) and rendered markup from the contact module now come out right. - The
mail_stylefilter escapes plain strings first. Links no longer pull a trailing>into the URL. The preheader is plain text with spaces between paragraphs. - Magic HTML Mail: Symfony Mailer keeps a reference to the message instead of a copy, so alter hooks that run after it are no longer lost. Leftover entries from cancelled sends are cleared in
mailerInit(). - Magic HTML Mail: Amazon SES: uninstalling now points
system.mailentries back atamazon_ses_mail, so mail keeps working.
Upgrade notes
- The Magic HTML Mail: Amazon SES submodule now requires Amazon SES 3.1 or later.
- The Magic HTML Mail: Symfony Mailer submodule now requires Drupal Symfony Mailer 1.5 or later.
- No database updates.