From 7fca69c5cc1b8b5a297bfcb5ff4a06bfb65c7608 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Tue, 18 Sep 2018 21:27:33 +0200 Subject: [PATCH] Email not required at browser --- Assistant.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Assistant.js b/Assistant.js index 4e00404df..6f8b9b7f4 100644 --- a/Assistant.js +++ b/Assistant.js @@ -1394,6 +1394,15 @@ function sendEmail(pTitle, pBody, pTo) { try { + + /** + Email configuration is not available when running the bot on the browser. + */ + if (global.CURRENT_EXECUTION_AT === "Browser") { + logger.write(MODULE_NAME, "[WARN] sendEmail -> Send emails is disabled from the browser."); + return; + } + let emailList = pTo; //TODO Pending to add spam controller let runIndex = context.statusReport.runs.length - 1;