© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
3 replies
Cranberry

❔ graph .net sdk email

Hello,

I'm trying to send an email via graph .net sdk.

Here is my code.

  var message = new Message()
        {
            ToRecipients = new List<Recipient>()
            {
                new Recipient()
                {
                    EmailAddress = new EmailAddress()
                    {
                        Address = "aka.emre@hotmail.com",
                    }
                }
            },
            Subject = "Test mail",
            Body = new ItemBody()
            {
                ContentType = BodyType.Text,
                Content = "Test mail content aşko kuşkoo"
            },

        };

        await GraphServiceClient.Me.SendMail(message, true).Request().PostAsync();
  var message = new Message()
        {
            ToRecipients = new List<Recipient>()
            {
                new Recipient()
                {
                    EmailAddress = new EmailAddress()
                    {
                        Address = "aka.emre@hotmail.com",
                    }
                }
            },
            Subject = "Test mail",
            Body = new ItemBody()
            {
                ContentType = BodyType.Text,
                Content = "Test mail content aşko kuşkoo"
            },

        };

        await GraphServiceClient.Me.SendMail(message, true).Request().PostAsync();


And here is the error message: Microsoft.Graph.ServiceException: Code: RequestBodyRead
Message: The 'odata.nextLink' instance or property annotation has a null value. In OData, the 'odata.nextLink' instance or property annotation must have a non-null string value.
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

❔ .NET VS .NET SDK
C#CC# / help
4y ago
❔ .net SDK Version
C#CC# / help
3y ago
❔ Microsoft Graph SDK - Serializing objects
C#CC# / help
3y ago
❔ ml.net email
C#CC# / help
4y ago