From 555e2fa2976c465ea2e1362378102cb102913de2 Mon Sep 17 00:00:00 2001 From: Bartosz Juraszewski Date: Mon, 20 May 2024 09:00:38 +0200 Subject: [PATCH] Added separate MAIL_FROM_ADDRESS --- .env.example | 2 ++ config/mail.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 06a9387..96db9f2 100755 --- a/.env.example +++ b/.env.example @@ -18,6 +18,8 @@ MAIL_PORT=587 MAIL_ENCRYPTION=tls MAIL_USERNAME= MAIL_PASSWORD= +MAIL_FROM_ADDRESS= +MAIL_FROM_NAME= DOCKER_PORT=80 diff --git a/config/mail.php b/config/mail.php index 87e7d30..e8a0f56 100644 --- a/config/mail.php +++ b/config/mail.php @@ -101,7 +101,7 @@ */ 'from' => [ - 'address' => env('MAIL_USERNAME', 'hello@example.com'), + 'address' => env('MAIL_FROM_ADDRESS', env('MAIL_USERNAME', 'hello@example.com')), 'name' => env('MAIL_FROM_NAME', 'Example'), ],