Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
After uninstalling the SMTP module and attempting an action that would send an email I am presented with a WSOD.
Steps to reproduce
Enable, configure and turn on SMTP Authentication.
Uninstall SMTP Authentication module.
Do something that will send an email.
Proposed resolution
It looks like after uninstalling the module the system.mail interface default setting is left as "SMTPMailSystem":
_core:
default_config_hash: rYg34uhPafP2nga4_ZUPFuyI4KdE0zU468zLNSlzKoE
interface:
default: SMTPMailSystem
and should be:
_core:
default_config_hash: rYg34uhPafP2nga4_ZUPFuyI4KdE0zU468zLNSlzKoE
interface:
default: php_mail
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork smtp-3310134
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
thisismax CreditAttribution: thisismax as a volunteer commentedComment #5
japerryThe logic in the uninstall / disable function is a little odd. here is a patch/MR that should fix it.
Comment #6
japerry