Hi Ricardo,
Thanks for taking the time to answer.
I know the code is trigerred because the email I’ve sent to test is “read” without me accessing it.
No other node between the EmailReadImap node and the set node. And even though, if there was a problem in the workflow, it would not work executed by hand. So, I have no idea.
As for seeing the executions, it appears only when executed by hand.
{
"nodes": [
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "from",
"value": "={{$node[\"IMAP Email\"].json[\"from\"]}}"
},
{
"name": "to",
"value": "={{$node[\"IMAP Email\"].json[\"to\"]}}"
},
{
"name": "subject",
"value": "={{$node[\"IMAP Email\"].json[\"subject\"]}}"
},
{
"name": "text",
"value": "={{$node[\"IMAP Email\"].json[\"textPlain\"]}}"
}
]
},
"options": {}
},
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
300,
250
]
},
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
100,
100
]
},
{
"parameters": {
"options": {}
},
"name": "IMAP Email",
"type": "n8n-nodes-base.emailReadImap",
"typeVersion": 1,
"position": [
100,
250
],
"credentials": {
"imap": "IMAP01"
}
},
{
"parameters": {
"fromEmail": "[email protected]",
"toEmail": "={{$json[\"from\"]}}",
"subject": "RETOUR TEST",
"text": "RETOUR TEST",
"options": {
"allowUnauthorizedCerts": true
}
},
"name": "Send Email",
"type": "n8n-nodes-base.emailSend",
"typeVersion": 1,
"position": [
500,
250
],
"credentials": {
"smtp": "SMTP01"
}
},
{
"parameters": {
"keepOnlySet": true,
"values": {
"string": [
{
"name": "from",
"value": "={{$node[\"IMAP Email\"].json[\"from\"]}}"
},
{
"name": "to",
"value": "={{$node[\"IMAP Email\"].json[\"to\"]}}"
},
{
"name": "subject",
"value": "={{$node[\"IMAP Email\"].json[\"subject\"]}}"
},
{
"name": "text",
"value": "={{$node[\"IMAP Email\"].json[\"textPlain\"]}}"
}
]
},
"options": {}
},
"name": "Set",
"type": "n8n-nodes-base.set",
"typeVersion": 1,
"position": [
300,
250
]
}
],
"connections": {
"Set": {
"main": [
[
{
"node": "Send Email",
"type": "main",
"index": 0
}
]
]
},
"IMAP Email": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
}
}
}