Fix email tests and add one for MTA node

This commit is contained in:
Dave Conway-Jones
2020-10-19 14:32:09 +01:00
parent 14087a9f77
commit ef1ebe7b44
2 changed files with 58 additions and 2 deletions

View File

@@ -518,7 +518,7 @@ module.exports = function(RED) {
});
function emailMtaNode(n) {
function EmailMtaNode(n) {
RED.nodes.createNode(this,n);
this.port = n.port;
var node = this;
@@ -573,6 +573,6 @@ module.exports = function(RED) {
node.mta.close();
});
}
RED.nodes.registerType("e-mail mta",emailMtaNode);
RED.nodes.registerType("e-mail mta",EmailMtaNode);
};