From 37f950ab4295e15bb2ba4851e2d278bd5d29fa9f Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 29 May 2019 19:09:37 -0700 Subject: [PATCH] Fixed #7099 - set email to null by default for backup notifications --- .env.example | 1 + config/backup.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index ae6cbe6b7e94..d495111d78ab 100644 --- a/.env.example +++ b/.env.example @@ -43,6 +43,7 @@ MAIL_FROM_ADDR=you@example.com MAIL_FROM_NAME='Snipe-IT' MAIL_REPLYTO_ADDR=you@example.com MAIL_REPLYTO_NAME='Snipe-IT' +MAIL_BACKUP_NOTIFICATION_ADDRESS=you@example.com # -------------------------------------------- # REQUIRED: IMAGE LIBRARY diff --git a/config/backup.php b/config/backup.php index ae8a7367e042..ec1171a00824 100644 --- a/config/backup.php +++ b/config/backup.php @@ -132,7 +132,7 @@ 'notifiable' => \Spatie\Backup\Notifications\Notifiable::class, 'mail' => [ - 'to' => 'your@example.com', + 'to' => env('MAIL_BACKUP_NOTIFICATION_ADDRESS', null), ], 'slack' => [