Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Notifications/MailTested.php
7432 views
1
<?php
2
3
namespace Pterodactyl\Notifications;
4
5
use Pterodactyl\Models\User;
6
use Illuminate\Notifications\Notification;
7
use Illuminate\Notifications\Messages\MailMessage;
8
9
class MailTested extends Notification
10
{
11
public function __construct(private User $user)
12
{
13
}
14
15
public function via(): array
16
{
17
return ['mail'];
18
}
19
20
public function toMail(): MailMessage
21
{
22
return (new MailMessage())
23
->subject('Pterodactyl Test Message')
24
->greeting('Hello ' . $this->user->name . '!')
25
->line('This is a test of the Pterodactyl mail system. You\'re good to go!');
26
}
27
}
28
29