Skip to content

Commit baaaa7d

Browse files
committed
Merge branch 'master' of github.com:beyondcode/laravel-mailbox
2 parents 05d26ba + f4567f2 commit baaaa7d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

src/InboundEmail.php

Lines changed: 6 additions & 0 deletions
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

tests/InboundEmailTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ public function it_stores_inbound_emails_with_fallback_and_catchall_only_once()
113113
$this->assertSame(2, InboundEmail::query()->count());
114114
}
115115

116-
117116
/** @test */
118117
public function it_does_not_store_inbound_emails_if_configured()
119118
{

0 commit comments

Comments
 (0)