Email notification for triggering flow

email notification for triggering flow

Ok, what do you mean? Did you mean to show us how and forgot to include more information or are you having a problem?

If you are having a problem, show us what you have tried.

I am entering userid and password than also not sending mail and showing error
Error: Unexpected socket close
Error: Invalid login: 535-5.7.8 Username and Password not accepted. Learn more at
535 5.7.8 Check Gmail through other email platforms - Gmail Help o9-20020a629a09000000b0062d90f36d16sm2873349pfe.88 - gsmtp

So did you check to see what that message means?
Did you search the forum? (try using gmail and see what you find.)

yes i tried i am not able to send messages and receive by entering right credentials

Have you tried @zenofmud suggestion of searching the forum?

please provide example flow

[
    {
        "id": "22cfdecd0e82aeb6",
        "type": "tab",
        "label": "Flow 3",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "9761767aebdb6f60",
        "type": "inject",
        "z": "22cfdecd0e82aeb6",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 160,
        "y": 100,
        "wires": [
            [
                "727778b00c424088"
            ]
        ]
    },
    {
        "id": "9d13b207848dcc58",
        "type": "e-mail",
        "z": "22cfdecd0e82aeb6",
        "server": "smtp.gmail.com",
        "port": "465",
        "authtype": "BASIC",
        "saslformat": true,
        "token": "oauth2Response.access_token",
        "secure": true,
        "tls": true,
        "name": "",
        "dname": "",
        "credentials": {
            "userid": "blahblah@gmail.com"
        },
        "x": 530,
        "y": 100,
        "wires": []
    },
    {
        "id": "23e0ac9f4692855c",
        "type": "e-mail in",
        "z": "22cfdecd0e82aeb6",
        "name": "",
        "protocol": "IMAP",
        "server": "imap.gmail.com",
        "useSSL": true,
        "autotls": "never",
        "port": "993",
        "authtype": "BASIC",
        "saslformat": true,
        "token": "oauth2Response.access_token",
        "box": "INBOX",
        "disposition": "Read",
        "criteria": "UNSEEN",
        "repeat": "300",
        "fetch": "trigger",
        "inputs": 1,
        "credentials": {
            "userid": "blahblahi@gmail.com"
        },
        "x": 330,
        "y": 160,
        "wires": [
            [
                "8d83d2ce0f890274"
            ]
        ]
    },
    {
        "id": "8d83d2ce0f890274",
        "type": "debug",
        "z": "22cfdecd0e82aeb6",
        "name": "debug 294",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "statusVal": "",
        "statusType": "auto",
        "x": 490,
        "y": 160,
        "wires": []
    },
    {
        "id": "727778b00c424088",
        "type": "function",
        "z": "22cfdecd0e82aeb6",
        "name": "function 27",
        "func": "msg.payload = \"This is a test email\" ; \nmsg.topic = \"Testing Node-RED send email\";\nmsg.to = \"blahblah@gmail.com\";\nreturn msg;",
        "outputs": 1,
        "noerr": 0,
        "initialize": "",
        "finalize": "",
        "libs": [],
        "x": 350,
        "y": 100,
        "wires": [
            [
                "9d13b207848dcc58"
            ]
        ]
    },
    {
        "id": "af029c349211cce5",
        "type": "inject",
        "z": "22cfdecd0e82aeb6",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 160,
        "y": 160,
        "wires": [
            [
                "23e0ac9f4692855c"
            ]
        ]
    }
]

You may find that this does not work for you.
If so, I recommend searching the forum for "gmail" and reading the first 5 - 10 discussions, there's sure to be a clue there.

And show us your flow so we can see what you have tried so far.

In order to make code readable and usable it is necessary to surround your code with three backticks (also known as a left quote or backquote ```)

``` 
   code goes here 
```

You can edit and correct your post by clicking the pencil :pencil2: icon.

See this post for more details - How to share code or flow json

done thanks