diff --git a/nodes/social/61-imap.js b/nodes/social/61-imap.js index e5237a599..c4538c95a 100644 --- a/nodes/social/61-imap.js +++ b/nodes/social/61-imap.js @@ -20,7 +20,7 @@ var util = require('util'); var oldmail = {}; try { - var emailkey = require("../../settings").email || require("../../../emailkeys.js"); + var emailkey = RED.settings.email || require("../../../emailkeys.js"); } catch(err) { throw new Error("Failed to load Email credentials"); }