Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting message-id for structured reply #109

Closed
Munklinde96 opened this issue Jun 27, 2024 · 3 comments
Closed

Getting message-id for structured reply #109

Munklinde96 opened this issue Jun 27, 2024 · 3 comments

Comments

@Munklinde96
Copy link

Hello,

I am sending emails using Mailjet and want to reply to these emails programmatically. I understand that I need to set the headers with the previous Message-Ids.

In-Reply-To
References

How do I get these Message-Ids? I can't set the Message-ID header myself, so I need to retrieve it from Mailjet, which does not seem to be possible. In the response, I can only find mailjet specific IDs which I cannot use for anything in this case.

Any solutions?

@vtopc
Copy link
Collaborator

vtopc commented Dec 1, 2024

Hi. This repo is just a wrapper for the Mailjet API.
If MessageID from https://dev.mailjet.com/email/reference/send-emails#v3_1_post_send is not what you are looking for, please contact support at https://www.mailjet.com/contact/support/, so the API team can implement that.

@vtopc
Copy link
Collaborator

vtopc commented Dec 1, 2024

I guess you need /v3/REST/message:

request := &mailjet.Request{
Resource: "message",
}
var data []resources.Message
err := client.Get(request, &data)

@vtopc
Copy link
Collaborator

vtopc commented Jan 6, 2025

Closing as abandoned

@vtopc vtopc closed this as not planned Won't fix, can't repro, duplicate, stale Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants