mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-04 10:42:23 +00:00
Team notifications sent through the instance email settings, the S3 connection error alert, and the channel disabled alert now use the optional notification from address and name. Account mails keep the default sender. Remove the unused emails command and its views.
35 lines
784 B
PHP
35 lines
784 B
PHP
<?php
|
|
|
|
namespace App\Notifications\TransactionalEmails;
|
|
|
|
use App\Notifications\Channels\EmailChannel;
|
|
use App\Notifications\CustomEmailNotification;
|
|
use Illuminate\Notifications\Messages\MailMessage;
|
|
|
|
class Test extends CustomEmailNotification
|
|
{
|
|
public bool $isTestNotification = true;
|
|
|
|
public function __construct(
|
|
public string $emails,
|
|
public bool $isTransactionalEmail = true,
|
|
public ?bool $usesNotificationSender = null,
|
|
) {
|
|
$this->onQueue('high');
|
|
}
|
|
|
|
public function via(): array
|
|
{
|
|
return [EmailChannel::class];
|
|
}
|
|
|
|
public function toMail(): MailMessage
|
|
{
|
|
$mail = new MailMessage;
|
|
$mail->subject('Coolify: Test Email');
|
|
$mail->view('emails.test');
|
|
|
|
return $mail;
|
|
}
|
|
}
|