Emre
Emre
Explore posts from servers
RRailway
Created by Emre on 10/3/2024 in #✋|help
Postgres, I created new DBs
No description
7 replies
CC#
Created by Emre on 3/13/2023 in #help
❔ 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 = "[email protected]",
}
}
},
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 = "[email protected]",
}
}
},
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.
4 replies