Make email messages Markdown.

This commit is contained in:
James Cole
2022-03-29 12:45:48 +02:00
parent 9c19a08b17
commit 09bd0b572a
71 changed files with 747 additions and 555 deletions

View File

@@ -56,8 +56,6 @@ class NewIPAddressWarningMail extends Mailable
*/
public function build(): self
{
// time
$this->time = now(config('app.timezone'))->isoFormat((string)trans('config.date_time_js'));
$this->host = '';
try {
@@ -69,7 +67,8 @@ class NewIPAddressWarningMail extends Mailable
$this->host = $hostName;
}
return $this->view('emails.new-ip-html')->text('emails.new-ip-text')
return $this
->markdown('emails.new-ip')
->subject((string)trans('email.login_from_new_ip'));
}
}