You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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.
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.
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
The text was updated successfully, but these errors were encountered: