Allows users who can view email addresses to see error message

Created on 16 April 2024, 2 months ago
Updated 6 June 2024, 21 days ago

Problem/Motivation

When sending via an API, a bounce (hard, soft, spam report, etc) results in an uninformative and somewhat misleading error message. Allow users with the permission 'view user email addresses' to see the error message, which typically contains the email address. Otherwise when sending more than one email address (e.g. a bulk email blast), the non-admin user cannot tell which address bounced.

Steps to reproduce

1. Log in as a non-admin user, but one with the permission 'view user email addresses'.
2. Configure your api-based email provider to bounce an email address.
3. Configure a user to use that email address.
4. Send an email, such as via the contact form.
5. Receive "Unable to send email. Contact the site administrator if the problem persists."

Proposed resolution

In addition to 'administer mailer', allow 'view user email addresses' to view the message from the sending exception.

✨ Feature request
Status

Needs work

Version

1.4

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States DanChadwick

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

Comments & Activities

  • Issue created by @DanChadwick
  • Status changed to Needs review 2 months ago
  • πŸ‡ΊπŸ‡ΈUnited States DanChadwick

    This patch allows users with 'view user email addresses' to see the native error message.

    If this change is not generally desirable, at least this patch can be used for those needing this behavior change.

  • πŸ‡¬πŸ‡§United Kingdom AdamPS

    Yes I see your point.

    My concern is that the error messages could reveal internal site configuration details that the site owner would prefer to keep concealed. I guess another option is to create a new permission for "view detailed error logs"

  • Status changed to Needs work 21 days ago
  • πŸ‡¬πŸ‡§United Kingdom AdamPS
Production build 0.69.0 2024