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

How to derive Gmail message ID

Open pratham1002 opened this issue 1 year ago • 1 comments

I want to use the googleapis/gmail library to send emails through my gmail account. I also want to store the message-id in order to send follow-up emails using references.

However, the id returned by the library does not match the message-id in gmail -> view original email.

Library returns:

id:
1872208dcc053b54
threadId:
1872208dcc053b54

What I see on gmail image

How do get the message-id as seen on gmail when sending an email?

pratham1002 avatar Mar 27 '23 10:03 pratham1002

Try using Regex to extract it!

Zaidtech avatar Apr 08 '23 21:04 Zaidtech