update default from address to alternate config variable

This commit is contained in:
Godfrey M 2024-11-18 12:39:28 -08:00
parent d14f43fbbe
commit f533cdc07a
7 changed files with 7 additions and 7 deletions

View file

@ -34,7 +34,7 @@ class CheckinAccessoryMail extends Mailable
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address','service@snipe-it.io'));
$from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR'));
return new Envelope(
from: $from,

View file

@ -43,7 +43,7 @@ class CheckinAssetMail extends Mailable
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address','service@snipe-it.io'));
$from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR'));
return new Envelope(
from: $from,

View file

@ -34,7 +34,7 @@ class CheckinLicenseMail extends Mailable
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address','service@snipe-it.io'));
$from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR'));
return new Envelope(
from: $from,

View file

@ -37,7 +37,7 @@ class CheckoutAccessoryMail extends Mailable
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address','service@snipe-it.io'));
$from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR'));
return new Envelope(
from: $from,

View file

@ -52,7 +52,7 @@ class CheckoutAssetMail extends Mailable
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address', 'service@snipe-it.io'));
$from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR'));
return new Envelope(
from: $from,

View file

@ -38,7 +38,7 @@ class CheckoutConsumableMail extends Mailable
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address','service@snipe-it.io'));
$from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR'));
return new Envelope(
from: $from,

View file

@ -36,7 +36,7 @@ class CheckoutLicenseMail extends Mailable
*/
public function envelope(): Envelope
{
$from = new Address(config('mail.from.address','service@snipe-it.io'));
$from = new Address(config('mail.from.address'),config('MAIL_ENV_FROM_ADDR'));
return new Envelope(
from: $from,