diff --git a/app/Mail/CheckinAccessoryMail.php b/app/Mail/CheckinAccessoryMail.php index d573a4436f..cddd1bfab9 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'),config('MAIL_ENV_FROM_ADDR')); + $from = new Address(config('mail.from.address')); return new Envelope( from: $from, diff --git a/app/Mail/CheckinAssetMail.php b/app/Mail/CheckinAssetMail.php index cf660b21ea..d348100eba 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'),config('MAIL_ENV_FROM_ADDR')); + $from = new Address(config('mail.from.address')); return new Envelope( from: $from, diff --git a/app/Mail/CheckinLicenseMail.php b/app/Mail/CheckinLicenseMail.php index 709879ec1b..8ebc946c00 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'),config('MAIL_ENV_FROM_ADDR')); + $from = new Address(config('mail.from.address')); return new Envelope( from: $from, diff --git a/app/Mail/CheckoutAccessoryMail.php b/app/Mail/CheckoutAccessoryMail.php index 1c3f53402d..9d7d3dba05 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'),config('MAIL_ENV_FROM_ADDR')); + $from = new Address(config('mail.from.address')); return new Envelope( from: $from, diff --git a/app/Mail/CheckoutAssetMail.php b/app/Mail/CheckoutAssetMail.php index 3a1480e8bd..d5c5e23fae 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'),config('MAIL_ENV_FROM_ADDR')); + $from = new Address(config('mail.from.address')); return new Envelope( from: $from, diff --git a/app/Mail/CheckoutConsumableMail.php b/app/Mail/CheckoutConsumableMail.php index 833b562699..ec68125ef3 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'),config('MAIL_ENV_FROM_ADDR')); + $from = new Address(config('mail.from.address')); return new Envelope( from: $from, diff --git a/app/Mail/CheckoutLicenseMail.php b/app/Mail/CheckoutLicenseMail.php index 691169d8ac..80b226d9bf 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'),config('MAIL_ENV_FROM_ADDR')); + $from = new Address(config('mail.from.address')); return new Envelope( from: $from, diff --git a/config/mail.php b/config/mail.php index 4f39fac842..16025bde20 100755 --- a/config/mail.php +++ b/config/mail.php @@ -237,7 +237,7 @@ return [ */ 'from' => [ - 'address' => env('MAIL_FROM_ADDR', null), + 'address' => env('MAIL_FROM_ADDR', env('MAIL_ENV_FROM_ADDR')), 'name' => env('MAIL_FROM_NAME', null), ],