fix: env vars handled via conf file, add: functional tests

This commit is contained in:
Michael 2024-08-17 18:06:06 +02:00
parent 3d08b14f11
commit 21c4330f16
39 changed files with 416 additions and 172 deletions

View file

@ -14,7 +14,7 @@ return [
|
*/
'default' => env('MAIL_MAILER', 'log'),
'default' => config('MAIL_MAILER', 'log'),
/*
|--------------------------------------------------------------------------
@ -38,14 +38,14 @@ return [
'smtp' => [
'transport' => 'smtp',
'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'),
'url' => config('MAIL_URL'),
'host' => config('MAIL_HOST', '127.0.0.1'),
'port' => config('MAIL_PORT', 1025),
'encryption' => config('MAIL_ENCRYPTION', 'tls'),
'username' => config('MAIL_USERNAME'),
'password' => config('MAIL_PASSWORD'),
'timeout' => null,
'local_domain' => env('MAIL_EHLO_DOMAIN'),
'local_domain' => config('MAIL_EHLO_DOMAIN'),
],
'ses' => [
@ -54,7 +54,7 @@ return [
'postmark' => [
'transport' => 'postmark',
// 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
// 'message_stream_id' => config('POSTMARK_MESSAGE_STREAM_ID'),
// 'client' => [
// 'timeout' => 5,
// ],
@ -62,12 +62,12 @@ return [
'sendmail' => [
'transport' => 'sendmail',
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
'path' => config('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
],
'log' => [
'transport' => 'log',
'channel' => env('MAIL_LOG_CHANNEL'),
'channel' => config('MAIL_LOG_CHANNEL'),
],
'array' => [
@ -96,8 +96,12 @@ return [
*/
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', 'Example'),
'address' => config('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => config('MAIL_FROM_NAME', 'Example'),
],
'email_address_recepient' => env('EMAIL_ADDRESS_RECEPIENT', null),
'email_prefix_subject' => env('EMAIL_PREFIX_SUBJECT', null),
'mail_from_address' => env('MAIL_FROM_ADDRESS', 'export - git@test . net'),
'mail_from_name' => env('MAIL_FROM_NAME', "Export git"),
];