1.0.2 • Published 4 months ago

node-red-contrib-mime-generator v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

node-red-contrib-mime-generator

RFC 2822 compliant raw email message generator for node-red

NPM npm version npm bundle size npm

Inspired and based on the awesome @muratgozel's MIMEText library.

Supports plain text, HTML and AMP contents. Attachments support not implemented yet.

Configure the node

Double click the node and fill all fields

Payload

It expects a payload with an object containing the desired content-types, example:

{
    "text/plain": "This is my awesome email message",
    "text/html": "This is my awesome <b>HTML</b> email message"
}

Message (msg) properties supported

propertydescriptiontypeexample
subjectthe subject for the e-mail messagestring"My Awesome Subject"
fromfrom email addresssingle string"Victor \victoralmaraz@github.com"
toto email address(es)array of strings or single string"contact@email.com"
cccc email address(es)array of strings or single string "another@email.com", "another2@email.com"
bccbcc email address(es)array of strings or single string"yetanother@email.com"

Return

It returns the raw RFC 2822 email message

<add example here>