Change email init log to info, fix divider style
This commit is contained in:
@@ -9,12 +9,12 @@
|
|||||||
// ===========================================================================
|
// ===========================================================================
|
||||||
|
|
||||||
function initEmailScript() {
|
function initEmailScript() {
|
||||||
logToConsole(LOG_DEBUG, "[Asshat.Email]: Initializing email script ...");
|
logToConsole(LOG_INFO, "[Asshat.Email]: Initializing email script ...");
|
||||||
emailConfig = loadEmailConfiguration();
|
emailConfig = loadEmailConfiguration();
|
||||||
logToConsole(LOG_DEBUG, "[Asshat.Email]: Email script initialized successfully!");
|
logToConsole(LOG_INFO, "[Asshat.Email]: Email script initialized successfully!");
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// ===========================================================================
|
||||||
|
|
||||||
function sendEmail(toEmail, toName, subject, body) {
|
function sendEmail(toEmail, toName, subject, body) {
|
||||||
module.smtp.send(
|
module.smtp.send(
|
||||||
@@ -31,11 +31,11 @@ function sendEmail(toEmail, toName, subject, body) {
|
|||||||
emailConfig.fromName);
|
emailConfig.fromName);
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// ===========================================================================
|
||||||
|
|
||||||
function loadEmailConfiguration() {
|
function loadEmailConfiguration() {
|
||||||
let emailConfigFile = loadTextFile("config/email.json");
|
let emailConfigFile = loadTextFile("config/email.json");
|
||||||
return JSON.parse(emailConfigFile);
|
return JSON.parse(emailConfigFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------------------------------------------------------------------------
|
// ===========================================================================
|
||||||
Reference in New Issue
Block a user