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

SendMail ignores extended MAPI properties specified as SingleValueExtendedProperties #2210

Closed
obartelt opened this issue Nov 11, 2023 · 2 comments

Comments

@obartelt
Copy link

When sending a mail with SendMail.PostAsync, extended MAPI properties specified in Message.SingleValueExtendedProperties are ignored or at least not appearing in the mail received by the recipient. In this case, the Return-Path header was added using the following snippet, because adding it as an InternetMessageHeader is not allowed, and sending the mail in MIME format with the header doesn't work either:

message.SingleValueExtendedProperties.Add(new Microsoft.Graph.Models.SingleValueLegacyExtendedProperty
{
    Id = "String 0x1046",  // PidTagInternetReturnPath
    Value = email.ReturnPath.EmailAddress
});

Expected behavior: set the Return-Path header in the sent mail to the specified address.
Version: Microsoft Graph 5.34.0, .NET Standard 2.0 with .NET 6.0 test application

@andrueastman
Copy link
Member

Thanks for raising this @obartelt

As this this is a question related to the behaviour of the API and this repo is mainly intended for issued related to the function of SDK, any chance you can post a question at the link below to get guidance from the API owners on whether sending an email in mime format allows the addition of SingleValueExtendedProperties as well? It would be great if you could post back the link as a comment so that anyone else with the question may also be able to discover it.

https://learn.microsoft.com/en-us/answers/tags/161/ms-graph

Copy link
Contributor

This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants