mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-15 16:57:09 +00:00
Make email messages Markdown.
This commit is contained in:
@@ -38,18 +38,15 @@ class AdminTestMail extends Mailable
|
||||
use Queueable, SerializesModels;
|
||||
|
||||
public string $email;
|
||||
public string $ipAddress;
|
||||
|
||||
/**
|
||||
* ConfirmEmailChangeMail constructor.
|
||||
*
|
||||
* @param string $email
|
||||
* @param string $ipAddress
|
||||
*/
|
||||
public function __construct(string $email, string $ipAddress)
|
||||
public function __construct(string $email)
|
||||
{
|
||||
$this->email = $email;
|
||||
$this->ipAddress = $ipAddress;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,7 +56,8 @@ class AdminTestMail extends Mailable
|
||||
*/
|
||||
public function build(): self
|
||||
{
|
||||
return $this->view('emails.admin-test-html')->text('emails.admin-test-text')
|
||||
->subject((string)trans('email.admin_test_subject'));
|
||||
return $this
|
||||
->markdown('emails.admin-test')
|
||||
->subject((string)trans('email.admin_test_subject'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user