From: Duncan Barnes Date: Wed, 21 Feb 2018 09:24:19 +0000 (+0900) Subject: Added ability to configure email sender name X-Git-Tag: v0.20.1~1^2~27^2^2 X-Git-Url: http://source.bookstackapp.com/bookstack/commitdiff_plain/9a88b2cd0c0166236fd99206b2082ae12e18a561 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 --- 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')], /* |--------------------------------------------------------------------------