Microsoft Graph API: Fetch attachments for a particular email not an entire email thread - email

I am using Microsoft Graph API to get attachments of particular email.
https://graph.microsoft.com/v1.0/users/<user-id>/messages/<message_id>/attachments
Above API returns attachments from previous conversation thread as well.
Suppose a mail was started and it had bunch of replies with attachments and my latest email contains only one attachment and in entire email there are like 5 attachments with latest message-id if i try to fetch attachment instead of returning 1 attachment, it returns all attachment.
Is there any filter available just to get that particular attachment of the given mail.
i tried to get attachments of that particular sent mail but instead i am getting attachments of entire thread

Related

MSGraph .NET SDK: Problem forwarding emails with s/mime attachments

A windows service written in c# using MSGraph SDK v4.35 reads customer emails and downloads their .pdf or .tif/.tiff attachments for import. Some emails are arriving with .p7m attachments which are a multipart smime format which contains attachments as text, coded in Base64. I don't know if these were encrypted emails or just signed but I'm able to parse the content as mime and download the content as relevant image files, however, if I cannot download any image files, I need to notify the customer by email. When I try to forward the message to the customer using this MSGraph call
await graphClient
.Users[theAccount]
.Messages[theMessage.Id]
.Forward(toRecipients, null, comment)
.Request()
.PostAsync();
it fails, with the message
ErrorItemNotFound
Message: The specified object was not found in the store., The process failed to get the correct properties.
If the email has no attachments or standard attachments then it works OK. Is this a bug/unsupported feature, or is there something I can use in the call to make it work?
I tried updating the SDK to v4.44 but it stopped finding emails in certain customers' inboxes.

SendGrid send mail - how to keep track of emails?

I am sending emails from sendgrid from my backend. When I send the email, the response is 202 and the response body is empty. Since the response body is empty, i do not have any information like an ID to track the email events in my system.
When I go to fetch the events, i see they have an ID, but since I don't have that ID from their creation, I cant map emails I sent to events I received.
Can you give an email an ID or label it somehow when you send it? So that you can map al the events from it?
What we are trying to do is to have a list of "transactions" where each "Transaction" is affiliated with an email. We want to provide email event data in our app, but can't figure out how to map
The response body of a successful Mail Send API call is empty, but the response contains a x-message-id header which you can use to retrieve details about the messages being sent.
Since one API call to the Mail Send API can result in multiple emails being sent, this ID identifies the group of messages, and they'll all be prefixed with the x-message-id. For example, if x-message-id returns W86EgYT6SQKk0lRflfLRsA, the IDs of your messages will start with that and then be suffixed with something like .filterdrecv-5645d9c87f-78xgx-1-62841247-82.1.
Together it'd look like W86EgYT6SQKk0lRflfLRsA.filterdrecv-5645d9c87f-78xgx-1-62841247-82.1.
If you want to track the messages, you can use the event webhook or pull the information via the Email Activity Feed API.
This Stack Overflow Q&A about tracking bulk email statuses may also be useful to look at.

Office365 REST API - Creating attachments on an existing event doesn't send meeting update requests to recipients

API: https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/event_post_attachments
When we create attachments on an event, no meeting update request is sent out and as a consequence, the recipients don’t receive the updated meeting with the attachments. Any idea to go about how to handle this?

Does sendgrid supports sending email with "multiple" attachments using sendgrid web API (xml) and C# HTTPWebRequest?

When I try to send only one attachment, it works fine however when I try to send multiple attachments, it does not work.

Is it possible to send multiple email attachments with zend_mail?

I found several examples of sending a single email attachment using zend_mail. But I cannot figure out how to send multiple attachments. Can someone share how to do this if it is possible. I have sendmail installed on the server.
Yes its possible to send more than one attachment in a Zend_Mail_Message.
Depending on what method you use for creating attachments, just call $mail->createAttachment() once per attachment, or create all of your attachments as Zend_Mime_Part objects and call $mail->addAttachment($part) once for each attachment.
See Zend Mail Attachments for examples. Just repeat the example once for each file you want to attach.