]> BookStack Code Mirror - bookstack/commitdiff
Mail: changed default "MAIL_FROM" address
authorDan Brown <redacted>
Sat, 9 Sep 2023 11:39:01 +0000 (12:39 +0100)
committerDan Brown <redacted>
Sat, 9 Sep 2023 11:41:37 +0000 (12:41 +0100)
Used an "example.com" address so we're using a propoer reserved domain,
and to avoid these trying to be delivered to the main bookstackapp
domain.

Closes #4518

.env.example.complete
app/Config/mail.php

index 547e81818823db4a48ba30311e9692c0548b937a..0853bd1fecbba729352d46e46ed2c8ec9dde0d4c 100644 (file)
@@ -72,7 +72,7 @@ MYSQL_ATTR_SSL_CA="/path/to/ca.pem"
 # Mail configuration
 # Refer to https://www.bookstackapp.com/docs/admin/email-webhooks/#email-configuration
 MAIL_DRIVER=smtp
-MAIL_FROM=mail@bookstackapp.com
+MAIL_FROM=bookstack@example.com
 MAIL_FROM_NAME=BookStack
 
 MAIL_HOST=localhost
index 6400211e8940447f50d2b5e6d262641d1a5a8ace..2906d769afd929cac8d76f3d502472d6bda4d438 100644 (file)
@@ -22,7 +22,7 @@ return [
 
     // Global "From" address & name
     'from' => [
-        'address' => env('MAIL_FROM', 'mail@bookstackapp.com'),
+        'address' => env('MAIL_FROM', 'bookstack@example.com'),
         'name'    => env('MAIL_FROM_NAME', 'BookStack'),
     ],