[{"data":1,"prerenderedAt":143},["ShallowReactive",2],{"integration-node-red-node-email\u002F":3},{"_id":4,"categories":5,"author":8,"description":12,"npmOwners":13,"npmScope":16,"name":4,"ffCertified":17,"downloads":18,"version":20,"updatedAt":21,"maintainers":22,"homepage":26,"bugs":27,"repository":29,"time":33,"lastUpdated":21,"created":34,"license":138,"githubOwner":139,"githubRepo":140,"examples":141,"readme":142},"node-red-node-email",[6,7],"catalogue_communication","catalogue",{"name":9,"email":10,"url":11},"Dave Conway-Jones","dceejay@gmail.com","http:\u002F\u002Fnodered.org","Node-RED nodes to send and receive simple emails.",[14,15],"knolleary","dceejay",null,false,{"week":19},30968,"5.2.4","2026-05-31T08:42:23.338Z",[23,25],{"name":14,"email":24},"nick.oleary@gmail.com",{"name":15,"email":10},"https:\u002F\u002Fgithub.com\u002Fnode-red\u002Fnode-red-nodes#readme",{"url":28},"https:\u002F\u002Fgithub.com\u002Fnode-red\u002Fnode-red-nodes\u002Fissues",{"type":30,"url":31,"directory":32},"git","git+https:\u002F\u002Fgithub.com\u002Fnode-red\u002Fnode-red-nodes.git","tree\u002Fmaster\u002Fsocial\u002Femail",{"created":34,"modified":21,"0.0.1":34,"0.0.2":35,"0.0.4":36,"0.1.0":37,"0.1.1":38,"0.1.2":39,"0.1.3":40,"0.1.6":41,"0.1.7":42,"0.1.8":43,"0.1.9":44,"0.1.10":45,"0.1.11":46,"0.1.12":47,"0.1.13":48,"0.1.14":49,"0.1.15":50,"0.1.16":51,"0.1.17":52,"0.1.18":53,"0.1.19":54,"0.1.20":55,"0.1.21":56,"0.1.22":57,"0.1.23":58,"0.1.24":59,"0.1.26":60,"0.1.27":61,"0.1.29":62,"1.0.1":63,"1.0.3":64,"1.0.4":65,"1.0.5":66,"1.0.6":67,"1.0.7":68,"1.1.0":69,"1.2.0":70,"1.3.0":71,"1.4.0":72,"1.5.0":73,"1.5.1":74,"1.5.2":75,"1.6.0":76,"1.6.2":77,"1.6.3":78,"1.7.0":79,"1.7.1":80,"1.7.2":81,"1.7.3":82,"1.7.4":83,"1.7.6":84,"1.7.7":85,"1.7.8":86,"1.7.9":87,"1.7.10":88,"1.7.11":89,"1.8.0":90,"1.8.2":91,"1.8.3":92,"1.9.0":93,"1.10.0":94,"1.10.1":95,"1.10.2":96,"1.11.0":97,"1.12.0":98,"1.12.1":99,"1.12.2":100,"1.12.3":101,"1.13.0":102,"1.14.0":103,"1.15.0":104,"1.15.1":105,"1.17.0":106,"1.18.0":107,"1.18.1":108,"1.18.2":109,"1.18.3":110,"1.18.4":111,"1.19.0-beta":112,"1.19.1-beta":113,"1.19.0":114,"1.19.1":115,"2.0.0":116,"2.0.1":117,"2.1.0":118,"2.2.0":119,"2.2.1":120,"3.0.0":121,"3.0.1":122,"3.0.2":123,"3.0.3":124,"3.1.0":125,"4.0.0":126,"5.0.0":127,"5.0.1":128,"5.0.2":129,"5.0.4":130,"5.0.5":131,"5.1.0":132,"5.2.0":133,"5.2.1":134,"5.2.2":135,"5.2.3":136,"5.2.4":137},"2015-06-15T18:51:49.655Z","2015-06-16T08:17:26.303Z","2015-06-19T21:32:10.489Z","2015-07-15T09:40:40.771Z","2016-02-12T14:03:51.150Z","2016-02-26T22:00:08.533Z","2016-03-02T13:22:38.462Z","2016-05-18T10:07:39.544Z","2016-06-03T15:13:03.426Z","2016-06-07T14:56:35.019Z","2016-06-12T16:03:25.543Z","2016-06-27T11:02:54.360Z","2016-08-03T08:01:06.822Z","2016-11-06T20:33:28.163Z","2016-12-12T21:11:09.522Z","2016-12-12T21:13:20.153Z","2016-12-21T17:17:46.866Z","2017-02-04T17:06:51.058Z","2017-02-13T22:43:53.835Z","2017-02-15T18:34:50.865Z","2017-02-21T12:24:47.190Z","2017-02-21T13:09:01.876Z","2017-02-22T17:55:09.362Z","2017-04-03T17:02:53.279Z","2017-05-31T19:42:36.833Z","2017-07-18T19:33:00.606Z","2018-03-29T08:26:49.776Z","2018-03-30T13:51:52.717Z","2018-04-16T12:35:36.149Z","2018-08-30T12:03:05.560Z","2018-09-04T18:34:35.292Z","2018-09-11T13:09:14.805Z","2018-10-24T14:32:24.404Z","2018-10-26T16:01:01.841Z","2018-12-07T23:30:53.557Z","2019-02-01T00:01:18.065Z","2019-02-11T20:10:41.040Z","2019-02-24T23:07:58.273Z","2019-04-10T08:01:28.671Z","2019-05-22T07:40:15.123Z","2019-05-23T11:36:14.143Z","2019-05-28T16:20:24.157Z","2019-05-29T11:47:08.035Z","2019-06-14T20:37:52.702Z","2019-08-29T14:49:50.633Z","2019-09-24T20:44:24.922Z","2019-09-26T12:38:13.366Z","2019-11-09T12:01:22.540Z","2019-12-05T21:33:55.388Z","2020-01-08T09:26:26.821Z","2020-01-31T21:46:49.878Z","2020-02-09T14:12:04.087Z","2020-04-03T21:28:27.399Z","2020-08-28T08:36:37.306Z","2020-09-23T09:21:12.984Z","2020-09-23T22:54:20.448Z","2020-10-16T09:22:26.643Z","2020-10-26T09:10:12.171Z","2021-01-12T12:43:25.004Z","2021-03-13T14:14:42.098Z","2021-03-25T09:46:36.856Z","2021-03-28T15:55:51.493Z","2021-03-31T08:59:02.754Z","2021-04-01T08:37:02.664Z","2021-04-15T09:32:52.355Z","2021-05-11T08:22:23.958Z","2021-06-30T08:10:32.592Z","2021-07-16T13:41:26.584Z","2021-10-27T13:03:17.557Z","2022-01-01T19:10:00.891Z","2022-03-19T10:32:21.929Z","2022-04-08T12:28:06.898Z","2022-07-19T12:00:42.839Z","2022-10-14T12:37:31.780Z","2022-10-16T16:52:14.744Z","2022-11-08T13:53:50.681Z","2022-12-22T11:40:55.282Z","2022-12-24T14:04:47.275Z","2023-03-21T10:27:09.629Z","2023-03-21T10:44:31.260Z","2023-03-27T19:35:44.063Z","2023-03-27T22:18:50.183Z","2023-04-24T21:18:33.419Z","2023-05-29T21:00:52.194Z","2023-12-04T20:32:35.863Z","2024-02-20T09:11:46.466Z","2024-03-12T12:22:37.327Z","2024-06-14T14:23:47.308Z","2024-07-04T17:18:42.312Z","2024-08-31T18:34:27.488Z","2025-01-21T11:59:17.544Z","2025-08-04T16:12:40.291Z","2025-08-26T09:06:48.089Z","2025-10-22T14:06:59.335Z","2025-11-30T15:13:32.970Z","2025-12-09T16:15:15.356Z","2025-12-24T15:15:44.778Z","2025-12-24T16:13:01.715Z","2026-01-15T15:16:17.572Z","2026-02-18T17:22:23.311Z","2026-02-26T17:32:56.137Z","2026-04-02T20:27:28.745Z","2026-04-17T09:12:03.905Z","2026-05-31T08:42:23.230Z","Apache-2.0","node-red","node-red-nodes",[],"\u003Ch1 id=\"node-red-node-email\">\u003Ca class=\"header-anchor\" href=\"#node-red-node-email\">node-red-node-email\u003C\u002Fa>\u003C\u002Fh1>\n\u003Cp>\u003Ca href=\"http:\u002F\u002Fnodered.org\" target=\"info\">Node-RED\u003C\u002Fa> nodes to send and receive simple emails.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>v4 Breaking Change\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Version 4.x introduced a breaking change. Users of the email-mta node will have to re-enter any user\u002Fpasswords used to authenticate incoming mail. This was caused by the existing property clashing with another internal users property. Apologies for the inconvenience.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Notes\u003C\u002Fstrong> :\nVersion 3.x of this node requires \u003Cstrong>Node.js v18\u003C\u002Fstrong> or newer.\nVersion 2.x of this node requires \u003Cstrong>Node.js v16\u003C\u002Fstrong> or newer.\nVersion 1.91 of this node required \u003Cstrong>Node.js v14\u003C\u002Fstrong> or newer.\nPrevious versions of this node required \u003Cstrong>Node.js v8\u003C\u002Fstrong> or newer.\u003C\u002Fp>\n\u003Ch2 id=\"pre-requisite\">\u003Ca class=\"header-anchor\" href=\"#pre-requisite\">Pre-requisite\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>You will need valid email credentials for your email server. For GMail this may mean\ngetting an application password if you have two-factor authentication enabled.\u003C\u002Fp>\n\u003Cp>For Exchange and Outlook 365 you must use OAuth2.0.\u003C\u002Fp>\n\u003Ch2 id=\"install\">\u003Ca class=\"header-anchor\" href=\"#install\">Install\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>You can install by using the \u003Ccode>Menu - Manage Palette\u003C\u002Fcode> option, or running the following command in your\nNode-RED user directory - typically \u003Ccode>~\u002F.node-red\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cpre>\u003Ccode>    cd ~\u002F.node-red\n    npm i node-red-node-email\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2 id=\"gmail-users\">\u003Ca class=\"header-anchor\" href=\"#gmail-users\">GMail users\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>If you are accessing GMail you may need to either enable \u003Ca target=\"_new\" href=\"https:\u002F\u002Fsupport.google.com\u002Fmail\u002Fanswer\u002F185833?hl=en\">an application password\u003C\u002Fa>,\nor enable \u003Ca target=\"_new\" href=\"https:\u002F\u002Fsupport.google.com\u002Faccounts\u002Fanswer\u002F6010255?hl=en\">less secure access\u003C\u002Fa> via your Google account settings.\u003C\u002Fp>\u003Cp>\u003C\u002Fp>\n\u003Ch2 id=\"office-365-users\">\u003Ca class=\"header-anchor\" href=\"#office-365-users\">Office 365 users\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>If you are accessing Exchange you will need to register an application through their platform and use OAuth2.0.\n\u003Ca target=\"_new\" href=\"https:\u002F\u002Flearn.microsoft.com\u002Fen-us\u002Fexchange\u002Fclient-developer\u002Flegacy-protocols\u002Fhow-to-authenticate-an-imap-pop-smtp-application-by-using-oauth#get-an-access-token\">Details on how to do this can be found here.\u003C\u002Fa>\u003C\u002Fp>\n\u003Ch2 id=\"usage\">\u003Ca class=\"header-anchor\" href=\"#usage\">Usage\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Nodes to send and receive simple emails.\u003C\u002Fp>\n\u003Ch3 id=\"input-node\">\u003Ca class=\"header-anchor\" href=\"#input-node\">Input node\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>Fetches emails from an IMAP or POP3 server and forwards them onwards as messages if not already seen.\u003C\u002Fp>\n\u003Cp>The subject is loaded into \u003Ccode>msg.topic\u003C\u002Fcode> and \u003Ccode>msg.payload\u003C\u002Fcode> is the plain text body.\nIf there is text\u002Fhtml then that is returned in \u003Ccode>msg.html\u003C\u002Fcode>. \u003Ccode>msg.from\u003C\u002Fcode> and\n\u003Ccode>msg.date\u003C\u002Fcode> are also set if you need them.\u003C\u002Fp>\n\u003Cp>Additionally \u003Ccode>msg.header\u003C\u002Fcode> contains the complete header object including\n\u003Cstrong>to\u003C\u002Fstrong>, \u003Cstrong>cc\u003C\u002Fstrong> and other potentially useful properties.\u003C\u002Fp>\n\u003Cp>Modern authentication through OAuth2.0 is supported, but must be triggered by an incoming access token and\ncan only be automatically triggered upstream.\u003C\u002Fp>\n\u003Ch3 id=\"output-node\">\u003Ca class=\"header-anchor\" href=\"#output-node\">Output node\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>Sends the \u003Ccode>msg.payload\u003C\u002Fcode> as an email, with a subject of \u003Ccode>msg.topic\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>The default message recipient can be configured in the node, if it is left blank it should be set using the \u003Ccode>msg.to\u003C\u002Fcode> property of the incoming message. You can also specify any or all of: \u003Ccode>msg.cc\u003C\u002Fcode>, \u003Ccode>msg.bcc\u003C\u002Fcode>, \u003Ccode>msg.replyTo\u003C\u002Fcode>, \u003Ccode>msg.inReplyTo\u003C\u002Fcode>, \u003Ccode>msg.references\u003C\u002Fcode>, \u003Ccode>msg.headers\u003C\u002Fcode>, or \u003Ccode>msg.priority\u003C\u002Fcode> properties.\u003C\u002Fp>\n\u003Cp>The email \u003Cem>from\u003C\u002Fem> can be set using \u003Ccode>msg.from\u003C\u002Fcode> but not all mail services allow\nthis unless \u003Ccode>msg.from\u003C\u002Fcode> is also a valid userid or email address associated with\nthe password. Note: if \u003Ccode>userid\u003C\u002Fcode> or msg.from does not contain a valid email\naddress (userxx@some_domain.com), you may see \u003Cem>(No Sender)\u003C\u002Fem> in the email.\u003C\u002Fp>\n\u003Cp>The payload can be html format. You can also specify \u003Ccode>msg.plaintext\u003C\u002Fcode> if the main payload is html.\u003C\u002Fp>\n\u003Cp>If the payload is a binary buffer, then it will be converted to an attachment.\u003C\u002Fp>\n\u003Cp>The filename should be set using \u003Ccode>msg.filename\u003C\u002Fcode>. Optionally\n\u003Ccode>msg.description\u003C\u002Fcode> can be added for the body text.\u003C\u002Fp>\n\u003Cp>Alternatively you may provide \u003Ccode>msg.attachments\u003C\u002Fcode> which should contain an array of one or\nmore attachments in \u003Ca href=\"https:\u002F\u002Fnodemailer.com\u002Fmessage\u002Fattachments\u002F\" target=\"_new\">nodemailer\u003C\u002Fa> format.\u003C\u002Fp>\n\u003Cp>If required by your recipient you may also pass in a \u003Ccode>msg.envelope\u003C\u002Fcode> object, typically containing extra from and to properties.\u003C\u002Fp>\n\u003Cp>If you have own signed certificates, Nodemailer can complain about that and refuse sending the message. In this case you can try switching off TLS.\u003C\u002Fp>\n\u003Cp>Use secure connection - If enabled the connection will use TLS when connecting to server. If disabled then TLS is used if server supports the STARTTLS extension. In most cases set this to enabled if you are connecting to port 465. For port 587 or 25 keep it disabled.\u003C\u002Fp>\n\u003Cp>This node uses the \u003Cem>nodemailer\u003C\u002Fem> npm module.\u003C\u002Fp>\n\u003Ch2 id=\"testing\">\u003Ca class=\"header-anchor\" href=\"#testing\">Testing\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>You can pass the credentials object to the \u003Ccode>node-red-node-test-helper\u003C\u002Fcode> by doing the following:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-js\">const emailNode = require(\".\u002F61-email\");\n\nconst testFlows = [{\n    id: \"n1\", type: \"e-mail\", name: \"Email\",\n    from: \"email1test@example.com\", subject: \"TestSubject\", server: \"testServer\",\n    port: \"1111\", secure: \"X\", tls: true, authtype: \"BASIC\",\n}];\n\nconst testCredentials = {\n    n1: {\n        userid: \"ExampleUser\",\n        password: \"ExamplePassword\",\n        global: false\n    }\n};\n\nit('should be loaded', function (done) {\n    helper.load(emailNode, testFlows, testCredentials, function () {\n        const n1 = helper.getNode(\"n1\");\n        try {\n            n1.should.have.property('name', 'Email');\n            n1.should.have.property('from', 'email1test@example.com');\n            n1.should.have.property('subject', 'TestSubject');\n            n1.should.have.property('outserver', 'testServer'); \u002F\u002F Gathered via server\n            n1.should.have.property('outport', '1111'); \u002F\u002F Gathered via port\n            n1.should.have.property('secure', 'X');\n            n1.should.have.property('tls', true);\n            n1.should.have.property('authtype', 'BASIC');\n            n1.should.have.property('credentials');\n            n1.should.have.property('credentials', {\n                userid: \"ExampleUser\",\n                password: \"ExamplePassword\",\n                global: false\n            });\n            done();\n        } catch (err) {\n            done(err);\n        }\n    });\n});\n\u003C\u002Fcode>\u003C\u002Fpre>\n",1782217758987]