mirror of
https://github.com/v2board/v2board.git
synced 2025-02-10 23:49:12 +08:00
update
This commit is contained in:
parent
ff6aeb92ec
commit
4b43bd2b9e
@ -56,7 +56,7 @@ class SendRemindMail extends Command
|
||||
'template_value' => [
|
||||
'name' => config('v2board.app_name', 'V2Board')
|
||||
]
|
||||
]);
|
||||
])->delay(10);
|
||||
}
|
||||
}
|
||||
|
||||
@ -73,7 +73,7 @@ class SendRemindMail extends Command
|
||||
'template_value' => [
|
||||
'name' => config('v2board.app_name', 'V2Board')
|
||||
]
|
||||
]);
|
||||
])->delay(10);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,6 @@ use Illuminate\Foundation\Bus\Dispatchable;
|
||||
use Illuminate\Queue\InteractsWithQueue;
|
||||
use Illuminate\Queue\SerializesModels;
|
||||
use Illuminate\Support\Facades\Mail;
|
||||
use App\Models\MailLog;
|
||||
|
||||
class SendEmail implements ShouldQueue
|
||||
{
|
||||
@ -41,12 +40,5 @@ class SendEmail implements ShouldQueue
|
||||
$message->to($email)->subject($subject);
|
||||
}
|
||||
);
|
||||
|
||||
MailLog::create([
|
||||
'email' => $params['email'],
|
||||
'subject' => $params['subject'],
|
||||
'template_name' => $params['template_name'],
|
||||
'error' => count(Mail::failures()) > 0 ? Mail::failures()[0] : NULL
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user