Mail system messages on errors are confusing

Created on 1 July 2010, over 14 years ago
Updated 17 August 2024, 3 months ago

Problem/Motivation

We always assume that mail sends successfully, so when it fails, we give the user confusing messages.

Steps to reproduce

Proposed resolution

For all usages where mail is sent using MailManagerInterface::mail (including wrapped calls such as in user.module), assign the output to a variable and check $mail['result'] before printing success messages.

Remaining tasks

Rewrite the patch for Drupal 7 completely looking for all usages of MailManagerInterface::mail and a success message is displayed.

User interface changes

Release notes snippet

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
MailΒ  β†’

Last updated 14 days ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States douggreen Winchester, VA

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs subsystem maintainer review

    It is used to alert the maintainer(s) of a particular core subsystem that an issue significantly impacts their subsystem, and their signoff is needed (see the governance policy draft for more information). Also, if you use this tag, make sure the issue component is set to the correct subsystem. If an issue significantly impacts more than one subsystem, use needs framework manager review instead.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024