Error in Discord node while completing n8n Level 2 course workflow with SMTP Email node

Hi community,
I’m working on the n8n Level 2 course workflow. Since I don’t have a Google Cloud Console account, I used an SMTP Email node instead of the Gmail node suggested in the docs.
Here’s what I did:
SMTP Email node is working fine and the file is sent successfully.
Next step is configuring the Discord node.
The docs say to send this message:
I sent the file using email with the label ID {label ID}. My ID: {unique ID}
I replaced {unique ID} with my own course ID.
But I don’t know what to use for {label ID} since I’m not using Gmail labels.
When I test the Discord node, I get this error:
Cannot read properties of undefined (reading ‘error’)
Questions:
What should I use for {label ID} if I’m sending the email via SMTP instead of Gmail?
Is this error because my expression is wrong, or is there another fix?
Thanks a lot for the help :folded_hands:

Describe the problem/error/question

What is the error message (if any)?

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hello,

Take a look in the discord channel for the level2 outputs and you’ll see what labels are available.

cheers

i’m using SMTP Account because my card isn’t working for google cloud , the problem is the workflow is using Gmail(node) node and im using, Send email(node) with SMTP acc, it’s working email is forwarding but , docs saying send message with (label ID), But my send email node dont sending (label ID) in output.

What I meant, is that if you look at the existing level 2 discord channel you will see which labels you need to use in your text.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.