From 9a88b2cd0c0166236fd99206b2082ae12e18a561 Mon Sep 17 00:00:00 2001 From: Duncan Barnes Date: Wed, 21 Feb 2018 18:24:19 +0900 Subject: [PATCH] Added ability to configure email sender name Added env variable MAIL_FROM_NAME to allow the email sender name to be customised. Also added MAIL_FROM to .env.example --- .env.example | 2 ++ config/mail.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 80afb6274..088507b28 100644 --- a/.env.example +++ b/.env.example @@ -73,3 +73,5 @@ MAIL_PORT=1025 MAIL_USERNAME=null MAIL_PASSWORD=null MAIL_ENCRYPTION=null +MAIL_FROM=null +MAIL_FROM_NAME=null diff --git a/config/mail.php b/config/mail.php index 0386e0198..689be99b8 100644 --- a/config/mail.php +++ b/config/mail.php @@ -54,7 +54,7 @@ return [ | */ - 'from' => ['address' => env('MAIL_FROM', 'mail@bookstackapp.com'), 'name' => 'BookStack'], + 'from' => ['address' => env('MAIL_FROM', 'mail@bookstackapp.com'), 'name' => env('MAIL_FROM_NAME','BookStack')], /* |--------------------------------------------------------------------------