node-red-contrib-mime-generator

1.0.2 • Public • Published

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

property description type example
subject the subject for the e-mail message string "My Awesome Subject"
from from email address single string "Victor <victoralmaraz@github.com>"
to to email address(es) array of strings or single string "contact@email.com"
cc cc email address(es) array of strings or single string [ "another@email.com", "another2@email.com" ]
bcc bcc email address(es) array of strings or single string "yetanother@email.com"

Return

It returns the raw RFC 2822 email message

<add example here>

Package Sidebar

Install

npm i node-red-contrib-mime-generator

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

7.71 kB

Total Files

4

Last publish

Collaborators

  • victoralmaraz