fix alt message for html was not activating html flag

This commit is contained in:
osaajani 2021-01-14 03:57:21 +01:00
parent ce4f5baaaa
commit 4eaeefdcfa
1 changed files with 2 additions and 2 deletions

View File

@ -52,7 +52,7 @@ class Mailer extends \descartes\Controller
* @param array $destinations : Destinations address * @param array $destinations : Destinations address
* @param string $subject : Message subject * @param string $subject : Message subject
* @param string $message : Message * @param string $message : Message
* @param ?string $alt_message : Alt Message if no html support. Null if message is not html. * @param ?string $alt_message : Alt Message for clients with no html support. Use default (null) if mail to send is textonly and not html.
* @param array $attachments : List of path to attachment files * @param array $attachments : List of path to attachment files
* *
* @return bool : false on error, true else * @return bool : false on error, true else
@ -79,7 +79,7 @@ class Mailer extends \descartes\Controller
if ($alt_message) if ($alt_message)
{ {
$mail->isHTML($html); $mail->isHTML(true);
$mail->AltBody = $alt_message; $mail->AltBody = $alt_message;
} }