Sending e-mails and settings on Team.

This commit is contained in:
Joao Patricio
2023-05-25 17:32:23 +01:00
parent f23a760aac
commit ec867335d5
3 changed files with 11 additions and 2 deletions

View File

@@ -18,10 +18,13 @@ class CoolifyEmailChannel
$mailMessage = $notification->toMail($notifiable);
Mail::send([], [], fn(Message $message) => $message
->from('ask@me.com', 'My Coolify Instance')
->from(
$notifiable->extra_attributes?->get('from_address'),
$notifiable->extra_attributes?->get('from_name')
)
->bcc($bcc)
->subject($mailMessage->subject)
->html((string) $mailMessage->render())
->html((string)$mailMessage->render())
);
}