misc_pterodactyl-panel/app/Notifications/MailTested.php
2022-12-14 18:17:27 -07:00

27 lines
639 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->username . '!')
->line('This is a test of the Pterodactyl mail system. You\'re good to go!');
}
}