mirror of
https://github.com/pterodactyl/panel.git
synced 2026-11-30 11:25:52 -05:00
Co-authored-by: Anthony <anthony@infraly.co> Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
31 lines
698 B
PHP
31 lines
698 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Pterodactyl\Notifications;
|
|
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
use Illuminate\Notifications\Notification;
|
|
use Pterodactyl\Models\User;
|
|
|
|
class MailTested extends Notification
|
|
{
|
|
public function __construct(private readonly User $user) {}
|
|
|
|
/**
|
|
* @return list<string>
|
|
*/
|
|
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!");
|
|
}
|
|
}
|