2023-06-12 10:00:01 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace App\Notifications\TransactionalEmails;
|
|
|
|
|
|
|
|
|
|
use App\Notifications\Channels\EmailChannel;
|
2024-11-26 09:19:05 +00:00
|
|
|
use App\Notifications\CustomEmailNotification;
|
2023-06-12 10:00:01 +00:00
|
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
|
|
2024-11-26 09:19:05 +00:00
|
|
|
class Test extends CustomEmailNotification
|
2023-06-12 10:00:01 +00:00
|
|
|
{
|
2025-12-12 10:12:19 +00:00
|
|
|
public bool $isTestNotification = true;
|
|
|
|
|
|
2025-04-03 13:02:04 +00:00
|
|
|
public function __construct(public string $emails, public bool $isTransactionalEmail = true)
|
2024-11-22 10:16:01 +00:00
|
|
|
{
|
|
|
|
|
$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
|
|
|
|
|
{
|
2025-01-07 14:31:43 +00:00
|
|
|
$mail = new MailMessage;
|
|
|
|
|
$mail->subject('Coolify: Test Email');
|
|
|
|
|
$mail->view('emails.test');
|
2024-06-10 20:43:34 +00:00
|
|
|
|
2025-01-07 14:31:43 +00:00
|
|
|
return $mail;
|
2023-06-12 10:00:01 +00:00
|
|
|
}
|
2023-08-08 09:51:36 +00:00
|
|
|
}
|