node-red-contrib-mime-generator
v1.0.2
Published
RFC2822 compliant raw email message generator for node-red
Downloads
11
Maintainers
Readme
node-red-contrib-mime-generator
RFC 2822 compliant raw email message generator for node-red
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>