coolify/app/Notifications/TransactionalEmails/Test.php

32 lines
712 B
PHP
Raw Permalink Normal View History

2023-06-12 10:00:01 +00:00
<?php
namespace App\Notifications\TransactionalEmails;
use App\Notifications\Channels\EmailChannel;
use App\Notifications\CustomEmailNotification;
2023-06-12 10:00:01 +00:00
use Illuminate\Notifications\Messages\MailMessage;
class Test extends CustomEmailNotification
2023-06-12 10:00:01 +00:00
{
public bool $isTestNotification = true;
public function __construct(public string $emails, public bool $isTransactionalEmail = true)
{
$this->onQueue('high');
}
2023-07-28 08:55:26 +00:00
2023-06-12 10:00:01 +00:00
public function via(): array
{
return [EmailChannel::class];
}
2023-07-28 08:55:26 +00:00
2023-06-12 10:00:01 +00:00
public function toMail(): MailMessage
{
$mail = new MailMessage;
$mail->subject('Coolify: Test Email');
$mail->view('emails.test');
2024-06-10 20:43:34 +00:00
return $mail;
2023-06-12 10:00:01 +00:00
}
}