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

The internet message header name 'List-Unsubscribe' should start with 'x-' or 'X-'. #2105

Closed
tang2087 opened this issue Aug 29, 2023 · 2 comments

Comments

@tang2087
Copy link

Describe the bug
When sending email message using Graph API, an ODataError exception will throw out if List-Unsubscribe header is added:
"The internet message header name 'List-Unsubscribe' should start with 'x-' or 'X-'."

To Reproduce
Steps to reproduce the behavior:

  1. Create a message with internet message header:
var emailMessage = new Message
{
    Subject = subject,
    Body = new ItemBody
    {
        ContentType = BodyType.Html,
        Content = body
    },
    InternetMessageHeaders = new List<InternetMessageHeader>
    {
        new InternetMessageHeader { Name = "List-Unsubscribe", Value = listUnsubscribe }
    }
};
  1. Send the email using Graph API and the exception will show up.

Expected behavior
Email sent successfully without exception.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

@andrueastman
Copy link
Member

Thanks for raising this @FahaoTang,

As this seems to be an API side related issue and this repo is mainly intended for SDK related issues, any chance you can post the query at the link below to get feedback from the API owners? It would be great if you could post back the link to the created question so that anyone who comes across this may find it helpful as well.

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

@microsoft-github-policy-service
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