googleapis / googleapis/google-api-nodejs-client

How to derive Gmail message ID

Open
#3,204 1 comment 0 reactions 0 assignees View on GitHub
priority: p3 type: question
Dominant language
TypeScript
Stars
12.2k
Forks
2k
Avg merge
1d 9h
Merged PRs (30d)
24

Description

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](https://user-images.githubusercontent.com/54350608/227921012-b1f674b9-26fe-4c32-ae96-d341b6b0b624.png)

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.