Gmail node sending 2 emails per interaction

Describe the problem/error/question

The Gmail node sending 2 emails per interaction.
This problem started today; yesterday the sending was normal, for each execution of the weebhook trigger I received an email. I tried changing the response to “immediately” and that made it go back to sending only one email for a while, but soon after it went back to sending two.

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

image

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:
1 Like

Hi @Natan_Bijoyan Welcome!
Have you tried testing this with IMAP Node? And does normal send gmail node also behaves like this?

II believe the problem lies in the short time interval between the activation of the weebhook trigger, I am doing this flow so that approvals of proposals in a CRM are made via email by the board, normally it will be around 100 per day, but I cannot guarantee the time difference between creating the proposals and triggering the webhook

I didn’t test it with an Imap node, but I tested it with an email sending node, and the behavior remains

image

1 Like

This is really strange @Natan_Bijoyan I recommend testing this with IMAP node as it will clarify does it even work or there is a problem deep down, also as you have mentioned this might be because of the time intervals have you tried adding wait in the workfow between webhook and gmail that might help.

1 Like

For reasons beyond my knowledge, adding the “wait” node worked for sending emails, but when replacing it again with the send message node and waiting for a response, it immediately sent 2 emails to be executed:

Regarding the use of the IMAP node, would it be the trigger when receiving emails or a community node? It’s my first time using the tool, so I still have a lot to learn

1 Like

I decided to test again and now only 1 email was sent, I made zero changes:

2 Likes

I Guess wait node is our fix!
And for IMAP it is for triggers and for our use case SMTP :

I guess you should consider the wait node workaround! Hope this helps.

4 Likes

I ran 3 tests with a 4-minute interval in the “wait” node and it seems to be working, thank you very much.

2 Likes

hey que buena explicación, gracias

1 Like

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