diff --git a/app/Mail/CheckinAccessoryMail.php b/app/Mail/CheckinAccessoryMail.php index fc8d1455f9..707be0c2b4 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(env('MAIL_FROM_ADDR','service@snipe-it.io')); + $from = new Address(config('mail.from.address','service@snipe-it.io')); return new Envelope( from: $from, diff --git a/app/Mail/CheckinAssetMail.php b/app/Mail/CheckinAssetMail.php index 5dd8394a5a..3b457c7f03 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(env('MAIL_FROM_ADDR','service@snipe-it.io')); + $from = new Address(config('mail.from.address','service@snipe-it.io')); return new Envelope( from: $from, diff --git a/app/Mail/CheckinLicenseMail.php b/app/Mail/CheckinLicenseMail.php index 8957f367ef..73e09eabf4 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(env('MAIL_FROM_ADDR','service@snipe-it.io')); + $from = new Address(config('mail.from.address','service@snipe-it.io')); return new Envelope( from: $from, diff --git a/app/Mail/CheckoutAccessoryMail.php b/app/Mail/CheckoutAccessoryMail.php index f297c02754..6c6baeb633 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(env('MAIL_FROM_ADDR','service@snipe-it.io')); + $from = new Address(config('mail.from.address','service@snipe-it.io')); return new Envelope( from: $from, diff --git a/app/Mail/CheckoutAssetMail.php b/app/Mail/CheckoutAssetMail.php index fa1290e92d..84c2fb2165 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(env('MAIL_FROM_ADDR', 'service@snipe-it.io')); + $from = new Address(config('mail.from.address', 'service@snipe-it.io')); return new Envelope( from: $from, diff --git a/app/Mail/CheckoutConsumableMail.php b/app/Mail/CheckoutConsumableMail.php index 18fe228258..aa9a4dc803 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(env('MAIL_FROM_ADDR','service@snipe-it.io')); + $from = new Address(config('mail.from.address','service@snipe-it.io')); return new Envelope( from: $from, diff --git a/app/Mail/CheckoutLicenseMail.php b/app/Mail/CheckoutLicenseMail.php index 7377ad340e..a7dffe4ea4 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(env('MAIL_FROM_ADDR','service@snipe-it.io')); + $from = new Address(config('mail.from.address','service@snipe-it.io')); return new Envelope( from: $from,