Browse Source

Add MAIL_FROM_ADDRESS & MAIL_FROM_NAME to .env file (#5180)

Anton Komarev 4 years ago
parent
commit
b2734a9c31
2 changed files with 3 additions and 1 deletions
  1. 2 0
      .env.example
  2. 1 1
      config/mail.php

+ 2 - 0
.env.example

@@ -29,6 +29,8 @@ MAIL_PORT=2525
 MAIL_USERNAME=null
 MAIL_PASSWORD=null
 MAIL_ENCRYPTION=null
+MAIL_FROM_ADDRESS=null
+MAIL_FROM_NAME="${APP_NAME}"
 
 AWS_ACCESS_KEY_ID=
 AWS_SECRET_ACCESS_KEY=

+ 1 - 1
config/mail.php

@@ -57,7 +57,7 @@ return [
 
     'from' => [
         'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
-        'name' => env('MAIL_FROM_NAME', env('APP_NAME', 'Example')),
+        'name' => env('MAIL_FROM_NAME', 'Example'),
     ],
 
     /*