Error when sending core user email

Created on 26 March 2024, 8 months ago
Updated 2 May 2024, 7 months ago

Problem/Motivation

I received empty body mail when a user create a account or reset his password.

Steps to reproduce

1. Configure HTML default message format, I use sendmail by default
2. Use native user email
3. User create his account

=> Empty body mail

Other information

In this capture you can see "Plain text" (Texte Brut) in text format input, but in config the value is "". It's a default value in form.

Proposed resolution

I resolve it changing the default value of text_format in config "symfony_mailer_lite.message".
text_format: "" => text_format: plain_text

The function check_markup use to transform body message with no text_format return empty string.

πŸ› Bug report
Status

Postponed: needs info

Version

1.0

Component

Code

Created by

πŸ‡«πŸ‡·France Ilyna

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

Comments & Activities

  • Issue created by @Ilyna
  • Issue was unassigned.
  • πŸ‡«πŸ‡·France Ilyna
  • Status changed to Postponed: needs info 7 months ago
  • πŸ‡ΊπŸ‡ΈUnited States zengenuity

    I tested a fresh install of this module with the settings you show configured. When I created a new user account, I received the email notifications fine. The body had the standard text in it, converted to HTML.

                <p>testcreate,</p>
    <p>Thank you for registering at Drupal 10. Your application for an account is currently pending approval. Once it has been approved, you will receive another email containing information about how to log in, set your password, and other details.</p>
    <p>--  Drupal 10 team</p>

    Perhaps you should check your Plain Text text format to make sure there's nothing in there that could be interfering with the conversion of the text.

  • πŸ‡¬πŸ‡§United Kingdom Alex G

    I've just hit the issue myself.

    The value of the field was indeed ''.

    I set the config with drush -y config-set symfony_mailer_lite.message text_format plain_text and now it works as expected.

    We had migrated from Swift mailer straight onto 1.0.6.

    However I couldn't replicate with a fresh install of the module on another site.

Production build 0.71.5 2024