Skip to content

Commit 2a21cce

Browse files
authored
Merge pull request #15839 from Godmartinz/fix-mail-envelope-variable
replace env with config variable for from address
2 parents 3a683d8 + 6969b8b commit 2a21cce

8 files changed

+9
-7
lines changed

.env.testing.example

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ DB_PORT=3306
1717
DB_DATABASE=null
1818
DB_USERNAME=null
1919
DB_PASSWORD=null
20+
21+

app/Mail/CheckinAccessoryMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(Accessory $accessory, $checkedOutTo, User $checkedIn
3434
*/
3535
public function envelope(): Envelope
3636
{
37-
$from = new Address(env('MAIL_FROM_ADDR','[email protected]'));
37+
$from = new Address(config('mail.from.address'));
3838

3939
return new Envelope(
4040
from: $from,

app/Mail/CheckinAssetMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function __construct(Asset $asset, $checkedOutTo, User $checkedInBy, $not
4343
*/
4444
public function envelope(): Envelope
4545
{
46-
$from = new Address(env('MAIL_FROM_ADDR','[email protected]'));
46+
$from = new Address(config('mail.from.address'));
4747

4848
return new Envelope(
4949
from: $from,

app/Mail/CheckinLicenseMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public function __construct(LicenseSeat $licenseSeat, $checkedOutTo, User $check
3434
*/
3535
public function envelope(): Envelope
3636
{
37-
$from = new Address(env('MAIL_FROM_ADDR','[email protected]'));
37+
$from = new Address(config('mail.from.address'));
3838

3939
return new Envelope(
4040
from: $from,

app/Mail/CheckoutAccessoryMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function __construct(Accessory $accessory, $checkedOutTo, User $checkedOu
3737
*/
3838
public function envelope(): Envelope
3939
{
40-
$from = new Address(env('MAIL_FROM_ADDR','[email protected]'));
40+
$from = new Address(config('mail.from.address'));
4141

4242
return new Envelope(
4343
from: $from,

app/Mail/CheckoutAssetMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function __construct(Asset $asset, $checkedOutTo, User $checkedOutBy, $no
5252
*/
5353
public function envelope(): Envelope
5454
{
55-
$from = new Address(env('MAIL_FROM_ADDR', '[email protected]'));
55+
$from = new Address(config('mail.from.address'));
5656

5757
return new Envelope(
5858
from: $from,

app/Mail/CheckoutConsumableMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function __construct(Consumable $consumable, $checkedOutTo, User $checked
3838
*/
3939
public function envelope(): Envelope
4040
{
41-
$from = new Address(env('MAIL_FROM_ADDR','[email protected]'));
41+
$from = new Address(config('mail.from.address'));
4242

4343
return new Envelope(
4444
from: $from,

app/Mail/CheckoutLicenseMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public function __construct(LicenseSeat $licenseSeat, $checkedOutTo, User $check
3636
*/
3737
public function envelope(): Envelope
3838
{
39-
$from = new Address(env('MAIL_FROM_ADDR','[email protected]'));
39+
$from = new Address(config('mail.from.address'));
4040

4141
return new Envelope(
4242
from: $from,

0 commit comments

Comments
 (0)