mirror of
https://github.com/pterodactyl/panel.git
synced 2024-11-22 17:12:30 +01:00
cbcf62086f
Co-authored-by: DaneEveritt <dane@daneeveritt.com>
28 lines
635 B
PHP
28 lines
635 B
PHP
<?php
|
|
|
|
namespace Pterodactyl\Notifications;
|
|
|
|
use Pterodactyl\Models\User;
|
|
use Illuminate\Notifications\Notification;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class MailTested extends Notification
|
|
{
|
|
public function __construct(private User $user)
|
|
{
|
|
}
|
|
|
|
public function via(): array
|
|
{
|
|
return ['mail'];
|
|
}
|
|
|
|
public function toMail(): MailMessage
|
|
{
|
|
return (new MailMessage())
|
|
->subject('Pterodactyl Test Message')
|
|
->greeting('Hello ' . $this->user->name . '!')
|
|
->line('This is a test of the Pterodactyl mail system. You\'re good to go!');
|
|
}
|
|
}
|