Better defaults for email.

This commit is contained in:
James Cole 2023-04-02 19:43:24 +02:00
parent d9315dcbfe
commit 7f6d2877fb
No known key found for this signature in database
GPG Key ID: B49A324B7EAD6D80

View File

@ -38,11 +38,11 @@ return [
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'host' => env('MAIL_HOST', 'smtp.mailtrap.io'),
'host' => envNonEmpty('MAIL_HOST', 'smtp.mailtrap.io'),
'port' => (int)env('MAIL_PORT', 2525),
'encryption' => env('MAIL_ENCRYPTION', 'tls'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'encryption' => envNonEmpty('MAIL_ENCRYPTION', 'tls'),
'username' => envNonEmpty('MAIL_USERNAME','user@example.com'),
'password' => envNonEmpty('MAIL_PASSWORD','password'),
'timeout' => null,
'verify_peer' => null !== env('MAIL_ENCRYPTION'),
],
@ -72,6 +72,11 @@ return [
'channel' => env('MAIL_LOG_CHANNEL', 'stack'),
'level' => 'notice',
],
'null' => [
'transport' => 'log',
'channel' => env('MAIL_LOG_CHANNEL', 'stack'),
'level' => 'notice',
],
'array' => [
'transport' => 'array',