From f25148606a28f48116d9d6ff5f334295bf5ed960 Mon Sep 17 00:00:00 2001 From: user Date: Mon, 19 Aug 2024 16:08:13 +0200 Subject: [PATCH] fix: email conf --- config/mail.php | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/config/mail.php b/config/mail.php index be0fa4a..c7ef373 100644 --- a/config/mail.php +++ b/config/mail.php @@ -9,20 +9,20 @@ return [ | | This option controls the default mailer that is used to send all email | messages unless another mailer is explicitly specified when sending - | the message. All additional mailers can be configured within the + | the message. All additional mailers can be envured within the | "mailers" array. Examples of each type of mailer are provided. | */ - 'default' => config('MAIL_MAILER', 'log'), + 'default' => env('MAIL_MAILER', 'sendmail'), /* |-------------------------------------------------------------------------- - | Mailer Configurations + | Mailer envurations |-------------------------------------------------------------------------- | - | Here you may configure all of the mailers used by your application plus - | their respective settings. Several examples have been configured for + | Here you may envure all of the mailers used by your application plus + | their respective settings. Several examples have been envured for | you and you are free to add your own as your application requires. | | Laravel supports a variety of mail "transport" drivers that can be used @@ -38,14 +38,14 @@ return [ 'smtp' => [ 'transport' => 'smtp', - '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'), + 'url' => env('MAIL_URL'), + 'host' => env('MAIL_HOST', '127.0.0.1'), + 'port' => env('MAIL_PORT', 1025), + 'encryption' => env('MAIL_ENCRYPTION', 'tls'), + 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), 'timeout' => null, - 'local_domain' => config('MAIL_EHLO_DOMAIN'), + 'local_domain' => env('MAIL_EHLO_DOMAIN'), ], 'ses' => [ @@ -54,7 +54,7 @@ return [ 'postmark' => [ 'transport' => 'postmark', - // 'message_stream_id' => config('POSTMARK_MESSAGE_STREAM_ID'), + // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'), // 'client' => [ // 'timeout' => 5, // ], @@ -62,12 +62,12 @@ return [ 'sendmail' => [ 'transport' => 'sendmail', - 'path' => config('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), ], 'log' => [ 'transport' => 'log', - 'channel' => config('MAIL_LOG_CHANNEL'), + 'channel' => env('MAIL_LOG_CHANNEL'), ], 'array' => [ @@ -96,8 +96,8 @@ return [ */ 'from' => [ - 'address' => config('MAIL_FROM_ADDRESS', 'export-git@congegni.net'), - 'name' => config('MAIL_FROM_NAME', 'Congegni - Export git'), + 'address' => env('MAIL_FROM_ADDRESS', 'export-git@congegni.net'), + 'name' => env('MAIL_FROM_NAME', 'Congegni - Export git'), ], 'email_address_recepient' => env('EMAIL_ADDRESS_RECEPIENT', null), 'email_prefix_subject' => env('EMAIL_PREFIX_SUBJECT', null),