_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.

CommentFileSizeAuthor
mailsystem-delegate_default.patch963 bytesLes Lim
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Issue summary: View changes
Status: Needs review » Reviewed & tested by the community

I 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.

  • Les Lim committed b3d1236 on 7.x-3.x
    Issue #1897904 by Les Lim: Fixed "mailsystem_delegate:default-system" is...
Les Lim’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 3.x. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.