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 with MIME content ignores custom MIME headers #2209

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

SendMail with MIME content ignores custom MIME headers #2209

obartelt opened this issue Nov 11, 2023 · 2 comments

Comments

@obartelt
Copy link

When sending a mail with via Messages.ToPostRequestInformation and then adding the MIME message as content, any MIME headers contained in that message are ignored when sending (or at least they are not contained in the mail received by the recipient). In this case: Auto-Submitted (removed), Return-Path (replaced with the sender of the mail).

I know that only X-... headers can be added via the Message object (which is unfortunate enough), but at least that way, an error message is returned. When using MIME format, the mail is sent, but the headers are removed/replaced.

Expected behavior: let any MIME headers that do not need replacement in, or report back an error message about conflicting headers that actually need replacement (like recipient, date, etc.).
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 custom MIME headers 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