mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-12-15 07:33:36 +08:00
3847a76134
- This ensures content notifications are not translated to receiver language. - This adds actual plaintext support for content notifications (Was previously just HTML as text view). - Shares same base class across all mail notifications. - Also cleaned up existing notification classes. Future cleanup requested via #4501
18 lines
519 B
PHP
18 lines
519 B
PHP
<?php
|
|
|
|
namespace BookStack\Notifications;
|
|
|
|
use BookStack\Users\Models\User;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class TestEmail extends MailNotification
|
|
{
|
|
public function toMail(User $notifiable): MailMessage
|
|
{
|
|
return $this->newMailMessage()
|
|
->subject(trans('settings.maint_send_test_email_mail_subject'))
|
|
->greeting(trans('settings.maint_send_test_email_mail_greeting'))
|
|
->line(trans('settings.maint_send_test_email_mail_text'));
|
|
}
|
|
}
|