From f533cdc07aea557e53adcf36e2ab1df689fd18ba Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Mon, 18 Nov 2024 12:39:28 -0800 Subject: [PATCH] update default from address to alternate config variable --- app/Mail/CheckinAccessoryMail.php | 2 +- app/Mail/CheckinAssetMail.php | 2 +- app/Mail/CheckinLicenseMail.php | 2 +- app/Mail/CheckoutAccessoryMail.php | 2 +- app/Mail/CheckoutAssetMail.php | 2 +- app/Mail/CheckoutConsumableMail.php | 2 +- app/Mail/CheckoutLicenseMail.php | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/Mail/CheckinAccessoryMail.php b/app/Mail/CheckinAccessoryMail.php index 707be0c2b4..d573a4436f 100644 --- a/app/Mail/CheckinAccessoryMail.php +++ b/app/Mail/CheckinAccessoryMail.php @@ -34,7 +34,7 @@ class CheckinAccessoryMail extends Mailable */ public function envelope(): Envelope { - $from = new Address(config('mail.from.address','service@snipe-it.io')); + $from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR')); return new Envelope( from: $from, diff --git a/app/Mail/CheckinAssetMail.php b/app/Mail/CheckinAssetMail.php index 3b457c7f03..cf660b21ea 100644 --- a/app/Mail/CheckinAssetMail.php +++ b/app/Mail/CheckinAssetMail.php @@ -43,7 +43,7 @@ class CheckinAssetMail extends Mailable */ public function envelope(): Envelope { - $from = new Address(config('mail.from.address','service@snipe-it.io')); + $from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR')); return new Envelope( from: $from, diff --git a/app/Mail/CheckinLicenseMail.php b/app/Mail/CheckinLicenseMail.php index 73e09eabf4..709879ec1b 100644 --- a/app/Mail/CheckinLicenseMail.php +++ b/app/Mail/CheckinLicenseMail.php @@ -34,7 +34,7 @@ class CheckinLicenseMail extends Mailable */ public function envelope(): Envelope { - $from = new Address(config('mail.from.address','service@snipe-it.io')); + $from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR')); return new Envelope( from: $from, diff --git a/app/Mail/CheckoutAccessoryMail.php b/app/Mail/CheckoutAccessoryMail.php index 6c6baeb633..1c3f53402d 100644 --- a/app/Mail/CheckoutAccessoryMail.php +++ b/app/Mail/CheckoutAccessoryMail.php @@ -37,7 +37,7 @@ class CheckoutAccessoryMail extends Mailable */ public function envelope(): Envelope { - $from = new Address(config('mail.from.address','service@snipe-it.io')); + $from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR')); return new Envelope( from: $from, diff --git a/app/Mail/CheckoutAssetMail.php b/app/Mail/CheckoutAssetMail.php index 84c2fb2165..3a1480e8bd 100644 --- a/app/Mail/CheckoutAssetMail.php +++ b/app/Mail/CheckoutAssetMail.php @@ -52,7 +52,7 @@ class CheckoutAssetMail extends Mailable */ public function envelope(): Envelope { - $from = new Address(config('mail.from.address', 'service@snipe-it.io')); + $from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR')); return new Envelope( from: $from, diff --git a/app/Mail/CheckoutConsumableMail.php b/app/Mail/CheckoutConsumableMail.php index aa9a4dc803..833b562699 100644 --- a/app/Mail/CheckoutConsumableMail.php +++ b/app/Mail/CheckoutConsumableMail.php @@ -38,7 +38,7 @@ class CheckoutConsumableMail extends Mailable */ public function envelope(): Envelope { - $from = new Address(config('mail.from.address','service@snipe-it.io')); + $from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR')); return new Envelope( from: $from, diff --git a/app/Mail/CheckoutLicenseMail.php b/app/Mail/CheckoutLicenseMail.php index a7dffe4ea4..691169d8ac 100644 --- a/app/Mail/CheckoutLicenseMail.php +++ b/app/Mail/CheckoutLicenseMail.php @@ -36,7 +36,7 @@ class CheckoutLicenseMail extends Mailable */ public function envelope(): Envelope { - $from = new Address(config('mail.from.address','service@snipe-it.io')); + $from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR')); return new Envelope( from: $from,