Remove testing try/catch on email
This commit is contained in:
@@ -450,13 +450,7 @@ function saveServerDataCommand(command, params, client) {
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
async function testEmailCommand(command, params, client) {
|
async function testEmailCommand(command, params, client) {
|
||||||
try {
|
sendEmail(params, "Player", "Test email", "Just testing the email system for the server!");
|
||||||
messagePlayerAlert(client, `Sending test email to ${params}`);
|
|
||||||
await sendEmail(params, "Player", "Test email", "Just testing the SMTP module for the server!");
|
|
||||||
} catch (error) {
|
|
||||||
messagePlayerError(client, "The email could not be sent! Error: ${error}");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user