Skip to content

Commit

Permalink
mail: allow configuring the timeout for the smtp driver (#31973)
Browse files Browse the repository at this point in the history
If accepted, I'll also add it to laravel/laravel (the default is "(int) 30" seconds)
  • Loading branch information
mfn committed Mar 15, 2020
1 parent 90d71fd commit 86114a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Illuminate/Mail/MailManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ protected function configureSmtpTransport($transport, array $config)
$transport->setLocalDomain($config['local_domain']);
}

if (isset($config['timeout'])) {
$transport->setTimeout($config['timeout']);
}

return $transport;
}

Expand Down

0 comments on commit 86114a8

Please sign in to comment.