This commit is contained in:
Andras Bacsai
2023-06-13 10:51:58 +02:00
parent 9e66e7a3e1
commit ecd16de53f
5 changed files with 49 additions and 15 deletions

View File

@@ -12,11 +12,14 @@ class TransactionalEmailChannel
{
public function send(User $notifiable, Notification $notification): void
{
$settings = InstanceSettings::get();
if ($settings->extra_attributes?->get('smtp_active') !== true) {
return;
}
$email = $notifiable->email;
if (!$email) {
return;
}
$settings = InstanceSettings::get();
$this->bootConfigs($settings);
$mailMessage = $notification->toMail($notifiable);