google-api-nodejs-client icon indicating copy to clipboard operation
google-api-nodejs-client copied to clipboard

Does the Gmail API library (gmail_v1) from Google APIs take time to send emails?

Open PatricioPoncini opened this issue 1 year ago • 1 comments
trafficstars

I'm using this library in Node.js and just made four requests in quick succession, all to the same email address and with the same body. To my surprise, only the first one arrived. Why is this happening? Is this how the library works? I would like to know more, as I understand that if this endpoint were used frequently in my application, there could be emails that wouldn't be generated

This is the body of my request; as you can see, it is very simple:

{
  "subject": "Example subject",
  "to": ["[email protected]"],
  "body": "<h1>Hello, World!</h1><p>This is an email body in HTML format.</p>"
}

PatricioPoncini avatar Oct 11 '24 13:10 PatricioPoncini

I think I understand. If I send the same body to the same email address, the second email won't be sent, right? Since the previous one sent is exactly the same. Can you confirm this?

PatricioPoncini avatar Oct 11 '24 13:10 PatricioPoncini

Since this is an API question, I'm going to transfer this to Discussions per our new issue policy. Thank you!

sofisl avatar Feb 04 '25 19:02 sofisl