tbergen1
tbergen1

Reputation: 239

Is it possible to add custom application data to an email via the Gmail API?

I am currently sending email via the Gmail API using the Google Node SDK. I am successful in doing so, but my application requires that I be able to attach specific identifiers to emails that I send in order to be able to track and process certain events correctly.

I have heard of custom metadata being added to emails sent through other services such as Mailchimp, Postmark, etc so it seems like some sort of standard to be able to do this in email. I however, have not been able to find how to do this via the Gmail API specifically. Is this even possible?

Upvotes: 0

Views: 390

Answers (1)

Iamblichus
Iamblichus

Reputation: 19319

Answer:

No, you cannot add custom application data to messages sent via Gmail API.

Reference:

The corresponding Message resource doesn't include any property for custom metadata.

And the related methods send and insert don't allow this either.

Issue Tracker:

A related feature request was reported in Issue Tracker, I'd suggest you to star it:

Workaround:

I'd suggest you to use labels to identify messages.

Upvotes: 1

Related Questions