Skip to content

Commit 18ea77a

Browse files
committedMar 14, 2025··
Fallback to text mail body if no HTML body is available
1 parent 4f0a564 commit 18ea77a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/Watchers/MailWatcher.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function registerMessageSendingEventListener(): void
3434
return;
3535
}
3636

37-
$payload = new MailablePayload($event->message->getHtmlBody());
37+
$payload = new MailablePayload($event->message->getHtmlBody() ?? $event->message->getTextBody());
3838

3939
$ray = app(Ray::class)->sendRequest($payload);
4040

0 commit comments

Comments
 (0)
Please sign in to comment.