Skip to content

Commit

Permalink
fixup! fixup! fix: add ability to send alternet text (html and plain)
Browse files Browse the repository at this point in the history
Signed-off-by: SebastianKrupinski <[email protected]>
  • Loading branch information
SebastianKrupinski committed Dec 17, 2024
1 parent 3b7c417 commit 2269033
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Db/LocalMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
* @method string getBodyHtml()
* @method void setBodyHtml(?string $bodyHtml)
* @method string|null getEditorBody()
* @method void setEditorBody(string $body)
* @method void setEditorBody(?string $body)
* @method bool isHtml()
* @method void setHtml(bool $html)
* @method bool|null isFailed()
Expand Down
2 changes: 2 additions & 0 deletions lib/Service/MimeMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ public function buildMessagePart(?string $contentPlain, ?string $contentHtml): H
$messagePart = $htmlPart;
} elseif (isset($plainPart)) {
$messagePart = $plainPart;
} else {
$messagePart = new Horde_Mime_Part();

Check warning on line 127 in lib/Service/MimeMessage.php

View check run for this annotation

Codecov / codecov/patch

lib/Service/MimeMessage.php#L127

Added line #L127 was not covered by tests
}

if (isset($embeddedParts) && count($embeddedParts) > 0) {
Expand Down

0 comments on commit 2269033

Please sign in to comment.