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.
_mailsystem_delegate_get_mailsystem()
looks for custom settings based on $module_$key
and $module
, but doesn't then look for default-system settings. mailsystem_default_value()
ends up being used regardless of the defaults set in the Mail System admin page.
Attached patch tries to use 'mailsystem_delegate:' . mailsystem_default_id()
if more specific settings aren't available.
Comment | File | Size | Author |
---|---|---|---|
mailsystem-delegate_default.patch | 963 bytes | Les Lim | |
Comments
Comment #1
quicksketchI ran into this problem today as well, and reached the exact same conclusion (too bad I didn't find the patch first). Without this patch, unless an e-mail/module is specifically configured, Mailsystem always uses the standard Drupal mechanism for formatting mail, making it very difficult to use something like SMTP + MIME Mail together. Patch works great.
Comment #3
Les LimCommitted to 3.x. Thanks!