When sending HTML emails, Simplenews generates a plain text alternative. This works based on a display mode "Email: HTML text alternative" which means that the admin has to configure correct display settings for this mode on every content type - and remember to keep it up to date if fields are added.

Mail transports such as swiftmailer also can generate a plain text alternative. Swiftmailer does it very well without any extra work for the admin. However swiftmailer won't generate the plain text alternative alternative if it is already present.

Simplenews should have an option on admin/config/services/simplenews/settings/newsletter to disable generation of plain text alternative.

Comments

AdamPS created an issue. See original summary.

adamps’s picture

Title: UI option to disable generate of plain text alternative » UI option to disable generation of plain text alternative
adamps’s picture

Version: 8.x-1.x-dev » 8.x-2.x-dev

In fact the email_textalt view mode is never used. The plain text alternative is generated using email_plain. That makes sense really - it would be a lot of extra work to define view mode settings separately for plain mails and mail text alternatives.

adamps’s picture

Status: Active » Needs review
StatusFileSize
new3.88 KB
adamps’s picture

Issue tags: +Plan to commit
adamps’s picture

Issue summary: View changes

I raised #3151779: Remove unused display mode email_textalt for the unused view mode.

adamps’s picture

Version: 8.x-2.x-dev » 3.x-dev
adamps’s picture

Status: Needs review » Needs work

The last submitted patch, 8: simplenews.plain-text-alt.3037128-8.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

adamps’s picture

Status: Needs work » Needs review
StatusFileSize
new5.61 KB
new591 bytes

Status: Needs review » Needs work

The last submitted patch, 10: simplenews.plain-text-alt.3037128-10.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

adamps’s picture

Status: Needs work » Needs review
StatusFileSize
new7.09 KB
new7.09 KB

The last submitted patch, 12: simplenews.plain-text-alt.3037128-12.patch, failed testing. View results

  • AdamPS committed eec186c on 3.x
    Issue #3037128 by AdamPS: UI option to disable generation of plain text...
adamps’s picture

Status: Needs review » Fixed
Issue tags: -Plan to commit

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.