node-red-contrib-simple-sendmail 0.1.9

Package for Node-RED. Send mail using nodemailer. Input all options.Input values ​​conform to nodemailer.

npm install node-red-contrib-simple-sendmail

Feature

Released

Date Version Description
2018-07-01 0.0.1 Released

Install

npm install --save node-red-contrib-simple-sendmail

Usage

Inputs

SMTP Server

  • msg.mail.transport.host
  • msg.mail.transport.port
  • msg.mail.transport.auth.user
  • msg.mail.transport.auth.pass

Mail Options

  • msg.mail.options.from
  • msg.mail.options.to
  • msg.mail.options.subject
  • msg.mail.options.text

Outputs

nodemailer response

  • msg.payload

Example

Example Flows

[
    {
        "id": "aef0394a.b36eb8",
        "type": "inject",
        "z": "4fd54dd0.9ec404",
        "name": "inject",
        "topic": "",
        "payload": "",
        "payloadType": "str",
        "repeat": "",
        "crontab": "",
        "once": false,
        "x": 130,
        "y": 64,
        "wires": [
            [
                "56d98d64.621d34"
            ]
        ]
    },
    {
        "id": "9a8b10cf.f5e0d",
        "type": "simple-sendmail",
        "z": "4fd54dd0.9ec404",
        "name": "simple sendmail",
        "subject": "",
        "body": "",
        "from": "",
        "to": "",
        "host": "",
        "user": "",
        "pass": "",
        "port": 587,
        "x": 464,
        "y": 64,
        "wires": [
            [
                "5463d265.b18dec"
            ]
        ]
    },
    {
        "id": "5463d265.b18dec",
        "type": "debug",
        "z": "4fd54dd0.9ec404",
        "name": "",
        "active": true,
        "console": "false",
        "complete": "false",
        "x": 646,
        "y": 64,
        "wires": []
    },
    {
        "id": "56d98d64.621d34",
        "type": "template",
        "z": "4fd54dd0.9ec404",
        "name": "set mail",
        "field": "mail",
        "fieldType": "msg",
        "format": "json",
        "syntax": "mustache",
        "template": "{\n    \"transport\": {\n        \"host\": \"xxxxx.com\",\n        \"port\": 587,\n        \"auth\": {\n            \"user\": \"username\", \n            \"pass\": \"password\"\n        }\n    },\n    \"options\": {\n        \"from\": \"[email protected]\",\n        \"to\": \"[email protected]\",\n        \"subject\": \"Hello\",\n        \"text\": \"Hello,\\nHow are you?\\nGoodbye.\"\n    }\n}",
        "output": "json",
        "x": 284,
        "y": 64,
        "wires": [
            [
                "9a8b10cf.f5e0d"
            ]
        ]
    }
]

Node Info

Version: 0.1.9
Updated 2 years, 3 months ago
License: Apache-2.0
Rating: not yet rated

Downloads

0 in the last day
33 in the last week
188 in the last month

Nodes

  • simple-sendmail

Keywords

  • node-red
  • mail

Maintainers