Fix mjml encoding of html entities

This commit is contained in:
grandeljay 2022-06-16 22:25:00 +02:00
parent 5edd844c2c
commit 6c76b868a0
2 changed files with 5 additions and 3 deletions

View file

@ -71,8 +71,6 @@ class Email
$success = mail($to, $subject, $message, $headers);
error_log($html);
return $success;
}
}

View file

@ -72,7 +72,11 @@ if (isset($_POST['reset'], $_POST['email'])) {
$emailReset->setPlaceholder('TEXT_HELLO', __('Hello,'));
$emailReset->setPlaceholder(
'TEXT_PASSWORD_RESET',
__('somebody has requested a password reset for this email address from <a href="https://wishthis.online">wishthis.online</a>. If this was you, click the button below to invalidate your current password and set a new one.')
sprintf(
/** TRANSLATORS: %s: The wishthis domain */
__('somebody has requested a password reset for this email address from %s. If this was you, click the button below to invalidate your current password and set a new one.'),
'<mj-raw><a href="https://wishthis.online">wishthis.online</a></mj-raw>'
)
);
$emailReset->setPlaceholder('TEXT_SET_NEW_PASSWORD', __('Set new password'));
$emailReset->setPlaceholder('wishthis.online', $_SERVER['HTTP_HOST']);