Skip to content

Commit 9cf123b

Browse files
Added custom header getter
1 parent 792869e commit 9cf123b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/InboundEmail.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,4 +171,9 @@ public function isValid(): bool
171171
{
172172
return $this->from() !== '' && ($this->text() !== '' || $this->html() !== '');
173173
}
174+
175+
public function headerValue(string $headerName): string
176+
{
177+
return $this->message()->getHeaderValue($headerName, null);
178+
}
174179
}

0 commit comments

Comments
 (0)