From: Matthew Exon Date: Sat, 28 Sep 2019 07:58:24 +0000 (+0200) Subject: [mailstream] Include BB code as plaintext X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=28ea8699902291196fc1301713ca0d085f09ec23;p=friendica-addons.git [mailstream] Include BB code as plaintext --- diff --git a/mailstream/mailstream.php b/mailstream/mailstream.php index 89aadbc2..32d02138 100644 --- a/mailstream/mailstream.php +++ b/mailstream/mailstream.php @@ -299,6 +299,7 @@ function mailstream_send(\Friendica\App $a, $message_id, $item, $user) { $mail->IsHTML(true); $mail->CharSet = 'utf-8'; $template = Renderer::getMarkupTemplate('mail.tpl', 'addon/mailstream/'); + $mail->AltBody = BBCode::toPlaintext($item['body']); $item['body'] = BBCode::convert($item['body']); $item['url'] = $a->getBaseURL() . '/display/' . $item['guid']; $mail->Body = Renderer::replaceMacros($template, [