Skip to content

Commit 9a88b2c

Browse files
committed
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
1 parent 67332a2 commit 9a88b2c

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

.env.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,5 @@ MAIL_PORT=1025
7373
MAIL_USERNAME=null
7474
MAIL_PASSWORD=null
7575
MAIL_ENCRYPTION=null
76+
MAIL_FROM=null
77+
MAIL_FROM_NAME=null

config/mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
|
5555
*/
5656

57-
'from' => ['address' => env('MAIL_FROM', 'mail@bookstackapp.com'), 'name' => 'BookStack'],
57+
'from' => ['address' => env('MAIL_FROM', 'mail@bookstackapp.com'), 'name' => env('MAIL_FROM_NAME','BookStack')],
5858

5959
/*
6060
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)