Mimemail sometimes sends emails with internal usernames

Created on 20 September 2023, over 1 year ago
Updated 5 January 2024, over 1 year ago

Problem/Motivation

When sending emails to a user, and if there's a plaintext field configured, Mimemail can send the username of that user, but it's using the internal username:
$address->getAccountName() rather than the more appropriate: $address->getDisplayName()

Steps to reproduce

Enable a plain-text configuration field, send an email to a user, ideally on a site that customises the display name.

Proposed resolution

Separate the logic for when to send using usernames, and then also change to using getDisplayName()

Remaining tasks

Needs some tests.

User interface changes

Emails received will probably use a username.

API changes

None.

Data model changes

None.

🐛 Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

🇬🇧United Kingdom steven jones

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

Comments & Activities

Production build 0.71.5 2024