diff --git a/config/mail.php b/config/mail.php index 3c65eb3f..975fb328 100755 --- a/config/mail.php +++ b/config/mail.php @@ -29,7 +29,7 @@ return [ | */ - 'host' => env('MAIL_HOST', 'smtp.mailgun.org'), + 'host' => env('MAIL_HOST', config('v2board.mail_host')), /* |-------------------------------------------------------------------------- @@ -42,7 +42,7 @@ return [ | */ - 'port' => env('MAIL_PORT', 587), + 'port' => env('MAIL_PORT', config('v2board.mail_port', 587)), /* |-------------------------------------------------------------------------- @@ -56,8 +56,8 @@ return [ */ 'from' => [ - 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), - 'name' => env('MAIL_FROM_NAME', 'Example'), + 'address' => env('MAIL_FROM_ADDRESS', config('v2board.mail_from_address')), + 'name' => env('MAIL_FROM_NAME', config('v2board.mail_from_name')), ], /* @@ -71,7 +71,7 @@ return [ | */ - 'encryption' => env('MAIL_ENCRYPTION', 'tls'), + 'encryption' => env('MAIL_ENCRYPTION', config('v2board.mail_encryption')), /* |-------------------------------------------------------------------------- @@ -84,9 +84,9 @@ return [ | */ - 'username' => env('MAIL_USERNAME'), + 'username' => env('MAIL_USERNAME', config('v2board.mail_username')), - 'password' => env('MAIL_PASSWORD'), + 'password' => env('MAIL_PASSWORD', config('v2board.mail_password')), /* |--------------------------------------------------------------------------