We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7b8a13 commit 8844cecCopy full SHA for 8844cec
src/InboundEmail.php
@@ -129,10 +129,25 @@ public function reply(Mailable $mailable)
129
130
public function forward($recipients)
131
{
132
- return Mail::to($recipients)->send([
133
- 'html' => $this->html(),
134
- 'text' => $this->text()
135
- ]);
+ return Mail::send([], [], function ($message) use ($recipients) {
+ $message->to($recipients)
+ ->setBody($this->body());
+ });
136
+ }
137
+
138
+ public function body()
139
+ {
140
+ return $this->isHtml() ? $this->html() : $this->text();
141
142
143
+ public function isHtml()
144
145
+ return $this->html() !== '';
146
147
148
+ public function isText()
149
150
+ return $this->text() !== '';
151
}
152
153
public function isValid(): bool
0 commit comments