Skip to content

Commit f9574de

Browse files
MahdiBaghbaniantoonp
authored andcommitted
add: html body as well as plain body
1 parent f0429c5 commit f9574de

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Controller/FederatedInvitesController.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,9 @@ private function sendEmail(string $token, string $senderProvider, string $addres
476476
$inviteDetails = $this->il10->t('Details:<br>Invite string: %1$s<br>token: %2$s<br>provider: %3$s', [$encoded, $token, $senderProvider]);
477477
$message = trim($message) === '' ? '' : "---\n$message\n---";
478478
$body = "$header\n\n$message\n\n$inviteLinkNote\n\n$inviteDetails";
479-
$email->setPlainBody($body);
479+
480+
$email->setHtmlBody($body);
481+
$email->setPlainBody(strip_tags(str_replace(['<br>', '<br/>', '<br />'], "\n", $body)));
480482

481483
/** @var string[] */
482484
$failedRecipients = $this->mailer->send($email);

0 commit comments

Comments
 (0)