lasthourcloud/app/Notifications/TransactionalEmails/Test.php

33 lines
712 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 Illuminate\Bus\Queueable;
use Illuminate\Contracts\Queue\ShouldQueue;
use Illuminate\Notifications\Messages\MailMessage;
use Illuminate\Notifications\Notification;
2023-07-28 08:55:26 +00:00
class Test extends Notification implements ShouldQueue
2023-06-12 10:00:01 +00:00
{
use Queueable;
2023-07-28 08:55:26 +00:00
2023-09-08 14:53:19 +00:00
public $tries = 5;
2024-06-10 20:43:34 +00:00
2024-06-19 06:59:46 +00:00
public function __construct(public string $emails) {}
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();
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;
}
}