Skip to content

Commit 1492b4e

Browse files
adi64simonschaufi
authored andcommitted
Use regular Illuminate MailManager if no domain is set (i.e. disable
DKIM signing)
1 parent 5029a0f commit 1492b4e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DKIMMailServiceProvider.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ private function publishesConfig(): void
3535
protected function registerIlluminateMailer()
3636
{
3737
$this->app->singleton('mail.manager', static function (Application $app) {
38+
if (config('dkim.domain') === null) {
39+
return new \Illuminate\Mail\MailManager($app);
40+
}
3841
return new MailManager($app);
3942
});
4043

0 commit comments

Comments
 (0)