Fix mjml encoding of html entities
This commit is contained in:
parent
5edd844c2c
commit
6c76b868a0
2 changed files with 5 additions and 3 deletions
|
@ -71,8 +71,6 @@ class Email
|
||||||
|
|
||||||
$success = mail($to, $subject, $message, $headers);
|
$success = mail($to, $subject, $message, $headers);
|
||||||
|
|
||||||
error_log($html);
|
|
||||||
|
|
||||||
return $success;
|
return $success;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -72,7 +72,11 @@ if (isset($_POST['reset'], $_POST['email'])) {
|
||||||
$emailReset->setPlaceholder('TEXT_HELLO', __('Hello,'));
|
$emailReset->setPlaceholder('TEXT_HELLO', __('Hello,'));
|
||||||
$emailReset->setPlaceholder(
|
$emailReset->setPlaceholder(
|
||||||
'TEXT_PASSWORD_RESET',
|
'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('TEXT_SET_NEW_PASSWORD', __('Set new password'));
|
||||||
$emailReset->setPlaceholder('wishthis.online', $_SERVER['HTTP_HOST']);
|
$emailReset->setPlaceholder('wishthis.online', $_SERVER['HTTP_HOST']);
|
||||||
|
|
Loading…
Reference in a new issue