nrc

node-red-contrib-email-out

Node-RED contrib node to send emails with output

Showing:

Popularity

Downloads/wk

976

GitHub Stars

0

Maintenance

Last Commit

4yrs ago

Contributors

0

Package

Dependencies

4

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-red-contrib-email-out

NPM

Node-Red node contrib node to send emails with output using nodemailer.

This node is based on node-red-nodes-email and lambda-mailer

#Install

Run the following command in the root directory of your Node-RED install

npm install --save node-red-contrib-email-out

Common mail properties

PropertyMethodExample
tomsg.to[ { "address": "receiver@example.com", "name": "Receiver" } ]
frommsg.from[ { "address": "sender@example.com", "name": "Sender" } ]
subjectmsg.subjectHello world!
text+htmlmsg.bodyHow are you today?
htmlmsg.htmlHow are you today?
textmsg.textHow are you today?
attachmentsmsg.attachments[] see attachments object properties
number of attachmentsmsg.attachments.length4

All mail properties

  • headers - unprocessed headers in the form of - {key: value} - if there were multiple fields with the same key then the value is an array
  • from - an array of parsed From addresses - [{address:'sender@example.com',name:'Sender Name'}] (should be only one though)
  • to - an array of parsed To addresses
  • cc - an array of parsed Cc addresses
  • bcc - an array of parsed 'Bcc' addresses
  • subject - the subject line
  • references - an array of reference message id values (not set if no reference values present)
  • inReplyTo - an array of In-Reply-To message id values (not set if no in-reply-to values present)
  • priority - priority of the e-mail, always one of the following: normal (default), high, low
  • body - if provided, override text and html fields
  • text - text body
  • html - html body
  • date - date field as a Date() object. If date could not be resolved or is not found this field is not set. Check the original date string from headers.date
  • attachments - an array of attachments

Attachments properties

attachments = [{
    contentType: 'image/png',
    fileName: 'image.png',
    contentDisposition: 'attachment',
    contentId: '5.1321281380971@localhost',
    transferEncoding: 'base64',
    length: 126,
    generatedFileName: 'image.png',
    checksum: 'e4cef4c6e26037bcf8166905207ea09b',
    content: <Buffer ...>
}];

#Nodes alt tag alt tag

TODO

  • add templates from lambda-mailer

#Author

Alessandro Holanda

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100