SWIFTMAILER_TRANSPORT_SMTP missing when enabling the module

Created on 8 January 2024, 6 months ago
Updated 11 January 2024, 6 months ago

Problem/Motivation

In Drupal 10.2, as I could not install Swiftmailer module with composer,
I've installed the suggested module Ssymfony_mailer.
When enabling the module, drush is returning this error:
"Error: Undefined constant "SWIFTMAILER_TRANSPORT_SMTP" in symfony_mailer_install() (line 50 of /var/www/html/web/modules/contrib/symfony_mailer/symfony_mailer.install)."

Steps to reproduce

Install drupal core 10.2
Uninstall and remove module swiftmailer if it's existing.
Install and enable module symfony_mailer.

Proposed resolution

Add a condition in the file symfony_mailer/symfony_mailer.install, line 50

if (defined('SWIFTMAILER_TRANSPORT_SMTP') && $settings['transport'] == SWIFTMAILER_TRANSPORT_SMTP) {
}

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Postponed: needs info

Version

1.4

Component

Code

Created by

🇫🇷France frondeau Nantes, FRANCE

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

Comments & Activities

Production build 0.69.0 2024