Social Nodes

Estimated reading time: 2 minutes

The Social nodes are as the name suggests, intended to support interaction with social media. Currently, OT Link Platform supports nodes for Twitter and email. The nodes enable flows to send or receive email or to send and receive tweets.


Email In Node

The Email In node returns new email as soon as it arrives, having been read repeatedly from an IMAP server. This node sets the msg.payload to an email subject. The email text body is saved to either msg.payload or msg.html, if the email is in html format.

Email in
[
    {
        "id": "e96f4d30.7e775",
        "type": "e-mail in",
        "z": "ea431baa.b2d16",
        "name": "",
        "protocol": "IMAP",
        "server": "imap.gmail.com",
        "useSSL": true,
        "port": "993",
        "box": "INBOX",
        "disposition": "Read",
        "repeat": "300",
        "x": 478.5,
        "y": 200.1999969482422,
        "wires": [
            []
        ]
    }
]


Email Out Node

Email out, as the name suggests, can be used to send incoming messages as emails via the configured IMAP server. The topic and recipient are all configurable. If there is binary data, it will be converted to an attachment.

Email out
[
    {
        "id": "f38d0d6e.c3f7a",
        "type": "e-mail",
        "z": "ea431baa.b2d16",
        "server": "smtp.gmail.com",
        "port": "465",
        "secure": true,
        "name": "",
        "dname": "",
        "x": 500.5,
        "y": 223.20001220703125,
        "wires": []
    }
]