Skip to content

Commit

Permalink
mail scheme fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Dec 7, 2024
1 parent 77d6492 commit 6c6d93b
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions config/mail.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,25 +36,31 @@
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'host' => env('MAIL_HOST', 'smtp.mailgun.org'),
'port' => env('MAIL_PORT', 587),
'url' => env('MAIL_URL'),
'host' => env('MAIL_HOST', '127.0.0.1'),
'port' => env('MAIL_PORT', 2525),
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
'local_domain' => env('MAIL_EHLO_DOMAIN'),
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url(env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
'scheme' => env('MAIL_SCHEME', 'smtp'),
],

'ses' => [
'transport' => 'ses',
],

'mailgun' => [
'transport' => 'mailgun',
],

'postmark' => [
'transport' => 'postmark',
// 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
// 'client' => [
// 'timeout' => 5,
// ],
],

'resend' => [
'transport' => 'resend',
],

'sendmail' => [
Expand All @@ -78,6 +84,14 @@
'log',
],
],

'roundrobin' => [
'transport' => 'roundrobin',
'mailers' => [
'ses',
'postmark',
],
],
],

/*
Expand Down

0 comments on commit 6c6d93b

Please sign in to comment.