mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-19 00:22:15 +00:00
Test postmark connection before storing credentials into the app
This commit is contained in:
@@ -30,10 +30,11 @@ class TestSMTPConnectionAction
|
||||
],
|
||||
]]);
|
||||
|
||||
// Get sender
|
||||
$sender = $credentials['email'] ?? $credentials['username'];
|
||||
|
||||
// Send test email
|
||||
Mail::to('test@hi5ve.digital')->send(new TestMail($sender));
|
||||
Mail::to($sender)->send(new TestMail($sender));
|
||||
} catch (TransportException | LogicException $error) {
|
||||
abort(
|
||||
response()->json([
|
||||
|
||||
Reference in New Issue
Block a user