Skip to content

Commit

Permalink
Merge pull request #15918 from Godmartinz/mail_name_fix
Browse files Browse the repository at this point in the history
Adds `MAIL_FROM_NAME` to mail envelope
  • Loading branch information
snipe authored Dec 3, 2024
2 parents 2ad1407 + e5284c0 commit 43d66a8
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion app/Mail/CheckinAccessoryMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(Accessory $accessory, $checkedOutTo, User $checkedIn
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address'));
$from = new Address(config('mail.from.address'), config('mail.from.name'));

return new Envelope(
from: $from,
Expand Down
2 changes: 1 addition & 1 deletion app/Mail/CheckinAssetMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(Asset $asset, $checkedOutTo, User $checkedInBy, $not
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address'));
$from = new Address(config('mail.from.address'), config('mail.from.name'));

return new Envelope(
from: $from,
Expand Down
2 changes: 1 addition & 1 deletion app/Mail/CheckinLicenseMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct(LicenseSeat $licenseSeat, $checkedOutTo, User $check
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address'));
$from = new Address(config('mail.from.address'), config('mail.from.name'));

return new Envelope(
from: $from,
Expand Down
2 changes: 1 addition & 1 deletion app/Mail/CheckoutAccessoryMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(Accessory $accessory, $checkedOutTo, User $checkedOu
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address'));
$from = new Address(config('mail.from.address'), config('mail.from.name'));

return new Envelope(
from: $from,
Expand Down
2 changes: 1 addition & 1 deletion app/Mail/CheckoutAssetMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function __construct(Asset $asset, $checkedOutTo, User $checkedOutBy, $no
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address'));
$from = new Address(config('mail.from.address'), config('mail.from.name'));

return new Envelope(
from: $from,
Expand Down
2 changes: 1 addition & 1 deletion app/Mail/CheckoutConsumableMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function __construct(Consumable $consumable, $checkedOutTo, User $checked
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address'));
$from = new Address(config('mail.from.address'), config('mail.from.name'));

return new Envelope(
from: $from,
Expand Down
2 changes: 1 addition & 1 deletion app/Mail/CheckoutLicenseMail.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function __construct(LicenseSeat $licenseSeat, $checkedOutTo, User $check
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address'));
$from = new Address(config('mail.from.address'), config('mail.from.name'));

return new Envelope(
from: $from,
Expand Down

0 comments on commit 43d66a8

Please sign in to comment.