An API that connects multiple Microsoft services, enabling data access and automation across platforms
We made a client side fix for generating the Mime Message on the usage of the Java Mail Client (Message is a javax.mail.Message).
message.saveChanges(); // save changes so all headers etc are organized.
On the Java Mail Client you can call save changes method to save all Mime headers before serialization.
By this way it seems like since all Mime Message Headers (including the initial Content-Type header) is available on the Message, we can send the message with an attachment without any problem:
Content-Type: multipart/mixed;
boundary="_002_15020177631281628585625643a7ba325bb6b5_"
With the same content now I can also send an Email by using the Graph Explorer tool under:
https://developer.microsoft.com/de-de/graph/graph-explorer
It seems like your example Email defined in the Graph documentation has so many headers such as Recipient IP, internal Thread Index etc.
https://learn.microsoft.com/en-us/graph/outlook-send-mime-message
I guess therefore using it as it is not working and causing another Undelivered Message problem because of spam filters, but it is another issue.
With the fix on our client side from above, Exchange server is not adding a Content-Type anymore so it seems to be working as expected.