1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/social/email
Yohann Ciurlik 8e001fcd45 Adding No Auth support to social email out node (#277)
* Let email out node connect to SMTP without authentication

Add the possibility to connect to local SMTP without authentication.

* Adapt test to connect to SMTP without credentials

Adapt test to connect to SMTP without credentials

* Add coverage for social email out node

Add coverage for social email out node

* Add more coverage to email out node

Add more coverage to email out node
2017-02-15 18:33:05 +00:00
..
locales/en-US Adding No Auth support to social email out node (#277) 2017-02-15 18:33:05 +00:00
61-email.html Let email out node set secure connection explicitly 2017-02-13 22:43:43 +00:00
61-email.js Adding No Auth support to social email out node (#277) 2017-02-15 18:33:05 +00:00
LICENSE Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
package.json Adding No Auth support to social email out node (#277) 2017-02-15 18:33:05 +00:00
README.md Bump email node version 2016-08-03 09:01:28 +01:00

node-red-node-email

Node-RED nodes to send and receive simple emails.

Pre-requisite

You will need valid email credentials for your email server.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

    npm i node-red-node-email

Usage

Nodes to send and receive simple emails.

Input

Repeatedly gets emails from an IMAP or POP3 server and forwards them onwards as messages if not already seen.

The subject is loaded into msg.topic and msg.payload is the plain text body. If there is text/html then that is returned in msg.html. msg.from and msg.date are also set if you need them.

Additionally msg.header contains the complete header object including to, cc and other potentially useful properties.

Note: this node only gets the most recent single email from the inbox, so set the repeat (polling) time appropriately.

Uses the imap npm module.

Output

Sends the msg.payload as an email, with a subject of msg.topic.

The default message recipient can be configured in the node, if it is left blank it should be set using the msg.to property of the incoming message.

You may optionally override the from email address by setting msg.from, otherwise the node will use the userid setting from the server connection.

The payload can be html format.

If the payload is a binary buffer then it will be converted to an attachment.

The filename should be set using msg.filename. Optionally msg.description can be added for the body text.

Alternatively you may provide msg.attachments which should contain an array of one or more attachments in nodemailer format.

Uses the nodemailer npm module.