Skip to content

Commit f4567f2

Browse files
authored
Merge pull request #8 from barryvdh/patch-2
Add In-Reply-To header
2 parents 8c3b4d3 + e01341d commit f4567f2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/InboundEmail.php

+6
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,12 @@ public function message(): MimeMessage
128128

129129
public function reply(Mailable $mailable)
130130
{
131+
if ($mailable instanceof \Illuminate\Mail\Mailable) {
132+
$mailable->withSwiftMessage(function (\Swift_Message $message) {
133+
$message->getHeaders()->addIdHeader('In-Reply-To', $this->id());
134+
});
135+
}
136+
131137
return Mail::to($this->from())->send($mailable);
132138
}
133139

0 commit comments

Comments
 (0)