Confirmation email in plain-text combained, even if HTML set in settings

Created on 9 April 2024, 12 months ago

Problem/Motivation

Drupal 9.5.11, simplenews module ver. 3.0.0-beta5. Default mail system - formatter: MIME Mail Mailer, Sender: SMTP Mailer, no specific module configuration.

Subscribe via webform. The confirmation emails again in plain-text/ combined format (not in HTML) after update of module. Any settings was not changing after simplenews module update.

Settings:

/admin/config/services/simplenews/settings/newsletter - format "HTML"

/admin/config/services/simplenews/settings/mail - checkbox "generate plain/text alternative" is unchecked

Steps to reproduce

Create webform with setting to subscribe (add hendler "submission newsletter", check checkbox for any newsletter name).

Add some HTML and tokens combination to "Body text for combined confirmation mail" field /admin/config/services/simplenews/settings/subscription , for example:

<a href="[simplenews-subscriber:combined-url]">link</a>

Try to subscribe via webform. In email you will see text with "broken" HTML-tags

Maybe something wrong with control of /admin/config/services/simplenews/settings/mail - checkbox "generate plain/text alternative" (in my settings is unchecked) in confirmation emails. Or this type emails always sending in combined format (HTML+plain/text alternative)?

Thank you.

🐛 Bug report
Status

Active

Version

3.0

Component

User interface

Created by

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

Comments & Activities

Production build 0.71.5 2024