node-red-contrib-mime-generator 1.0.2

RFC2822 compliant raw email message generator for node-red

npm install node-red-contrib-mime-generator

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 <[email protected]>"
to to email address(es) array of strings or single string "[email protected]"
cc cc email address(es) array of strings or single string [ "[email protected]", "[email protected]" ]
bcc bcc email address(es) array of strings or single string "[email protected]"

Return

It returns the raw RFC 2822 email message

<add example here>

Node Info

Version: 1.0.2
Updated 1 year, 5 months ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

3 in the last week

Nodes

  • MIME Generator

Keywords

  • node-red
  • rfc-2822
  • mime-message
  • email-message

Maintainers