Fix backup mails wording.

This commit is contained in:
Matthew Shillam 2018-10-22 23:50:21 +01:00
parent 6c8736ffaf
commit a82b2aed99
3 changed files with 9 additions and 5 deletions

View File

@ -99,6 +99,10 @@ class BackupController extends Controller
->cc(['matthew@shillam.me.uk','j.kendrick@dentalsupportuk.com'])
->send(new BackupError($backup));
}
else{
Mail::to('matthew@shillam.me.uk')
->send(new BackupError($backup));
}
}

View File

@ -30,7 +30,7 @@ class BackupError extends Mailable
public function build()
{
return $this->from('reports@mydentalbackup.co.uk')
->subject('ERROR Your backup ( ' . $this->backup->schedule_name . ' ) has a warning!')
->markdown('mail.backup.warning', ['backup' => $this->backup]);
->subject('ERROR Your backup ( ' . $this->backup->schedule_name . ' ) has an error!')
->markdown('mail.backup.error', ['backup' => $this->backup]);
}
}

View File

@ -30,7 +30,7 @@ class BackupWarning extends Mailable
public function build()
{
return $this->from('reports@mydentalbackup.co.uk')
->subject('SUCCESS Your backup ( ' . $this->backup->schedule_name . ' ) completed succesfully')
->markdown('mail.backup.success', ['backup' => $this->backup]);
->subject('WARNING Your backup ( ' . $this->backup->schedule_name . ' ) has warnings')
->markdown('mail.backup.warning', ['backup' => $this->backup]);
}
}