Context: I am using the [PHP] Gmail API and InboxSDK.
When sending a message (with Gmail API), I output the message sent object (reference here).
It contains info about message ID and Thread ID.
What is happening?
Id and ThreadID is the same (ok: because it is the first message in the thread).
But if I check the received mail with InboxSDK, i see a different ThreadID than the one returned by GMAIL API.
Example of what is going on:
I send a Test email via API.
When checking the thread ID with InboxSDK though...
We can see both Thread Ids are different.
Maybe I am doing something wrong, can you please help me out with this?
Note: I tried this multiple times with multiple google accounts. The issue is constant.
--> I used both and the same thing happens with both. But I will stick to gmail.users.drafts.send.
(Draft is generated via Web gmail, id is picked with inboxSDK getDraftID() and then sent via API with PHP)
--> The ID in the browser's address bar matches the id given by inboxSDK.
--> Very curious:
- If I do gmail.users.threads.get from the mail sender account, it gives 200 OK for the API given ID and 404 not found for the inboxSDK given Id.
- If I do gmail.users.threads.get from the mail receiver account, it gives 200 OK for the InboxSDK given ID and 404 not found for the API given Id.
Context and purpose: I need a way to match the API given id in the receiver mail account, because I need to match the DOM for specific sent mails. The API will send in background and that is the only ID I can save into the database.
Thank you.