plain text email needs plain text token replacement

Created on 2 May 2024, 9 months ago

Problem/Motivation

The pet_send_one_mail() function uses $token->replace() for both the HTML and plain text versions of the email. This results in HTML entities in the plain text version.

Steps to reproduce

Make a template with a plaintext version that has tokens in it. Send it a token containing an apostrophe ('), for example in a contraction like "It's". Note that the resulting email shows ' instead of the apostrophe.

Proposed resolution

Use $token->replacePlain() for the plaintext param instead.

Remaining tasks

Make a merge request.

πŸ› Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States BenStallings

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024