coolify/app/Notifications/TransactionalEmails/Test.php

30 lines
625 B
PHP
Raw 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 function __construct(public string $emails)
{
$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
{
2024-07-24 19:11:12 +00:00
$mail = new MailMessage;
2023-10-10 11:10:43 +00:00
$mail->subject('Coolify: Test Email');
2023-06-12 10:00:01 +00:00
$mail->view('emails.test');
2024-06-10 20:43:34 +00:00
2023-06-12 10:00:01 +00:00
return $mail;
}
}