Files
pterodactyl-panel/app/Notifications/MailTested.php
T
6c0413e39b Start 2.0 development
Co-authored-by: Anthony <anthony@infraly.co>
Co-authored-by: Sky Mulley <daniel.mulley@outlook.com>
2026-10-05 18:10:18 -04:00

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!");
}
}