updated hardcoded character with env variable

This commit is contained in:
2019-06-25 00:01:28 -05:00
parent 079169d8aa
commit 0f7e2d5bad
11 changed files with 46 additions and 14 deletions
+4 -1
View File
@@ -72,6 +72,9 @@ class MoonMailerCommand extends Command
$today->minute = 0;
$today->hour = 0;
//Get the esi configuration
$config = config('esi');
//Get all contacts from the rentals group
$contacts = MoonRental::select('Contact')->groupBy('Contact')->get();
@@ -99,7 +102,7 @@ class MoonMailerCommand extends Command
//Dispatch the mail job
$mail = new EveMail;
$mail->sender = 93738489;
$mail->sender = $config['primary'];
$mail->subject = "Warped Intentions Moon Rental Payment Due";
$mail->body = $body;
$mail->recipient = (int)$contact->Contact;