trait MailNotification

Trait for sending Mail notifications.

Methods

void
mailAlert(AlertRecipient|object $recipient, string $type, string $message, array<string,mixed> $details = [], string|null $subject = null)

Send an alert notification via Email.

Details

at line 23
void mailAlert(AlertRecipient|object $recipient, string $type, string $message, array<string,mixed> $details = [], string|null $subject = null)

Send an alert notification via Email.

Parameters

AlertRecipient|object $recipient

The recipient object with an email address

string $type

The alert type

string $message

The alert message

array<string,mixed> $details

Additional details

string|null $subject

Optional email subject

Return Value

void