mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-13 20:14:45 +00:00
1 parent
da07b4fdcf
commit
1fe4dd722b
349 files changed
+3689
-4184
No files matched your search
@@ -10,18 +10,18 @@ use Illuminate\Support\Facades\Mail;
|
||||
|
||||
class TransactionalEmailChannel
|
||||
{
|
||||
public function send(User $user, Notification $notification): void
|
||||
public function send(User $notifiable, Notification $notification): void
|
||||
{
|
||||
$settings = instanceSettings();
|
||||
if (! data_get($settings, 'smtp_enabled') && ! data_get($settings, 'resend_enabled')) {
|
||||
return;
|
||||
}
|
||||
$email = $user->email;
|
||||
$email = $notifiable->email;
|
||||
if (! $email) {
|
||||
return;
|
||||
}
|
||||
$this->bootConfigs();
|
||||
$mailMessage = $notification->toMail($user);
|
||||
$mailMessage = $notification->toMail($notifiable);
|
||||
Mail::send(
|
||||
[],
|
||||
[],
|
||||
|
||||
Reference in new issue
Block a user