Google's officially supported Node.js client library for accessing Google APIs. Support for authorization and authentication with OAuth 2.0, API Keys and JWT (Service Tokens) is included.
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": ["test@test.com"],
"body": "<h1>Hello, World!</h1><p>This is an email body in HTML format.</p>"
}
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?
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: