A free open source IT asset/license management system
update default from address to alternate config variable
Godfrey Mf533cdc07aea
diff --git a/app/Mail/CheckinAccessoryMail.php b/app/Mail/CheckinAccessoryMail.phpindex 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','[email protected]'));+ $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.phpindex 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','[email protected]'));+ $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.phpindex 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','[email protected]'));+ $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.phpindex 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','[email protected]'));+ $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.phpindex 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', '[email protected]'));+ $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.phpindex 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','[email protected]'));+ $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.phpindex 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','[email protected]'));+ $from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR'));return new Envelope(from: $from,