GreatIdeas.MailServices.MsGraph
1.0.0
See the version list below for details.
dotnet add package GreatIdeas.MailServices.MsGraph --version 1.0.0
NuGet\Install-Package GreatIdeas.MailServices.MsGraph -Version 1.0.0
<PackageReference Include="GreatIdeas.MailServices.MsGraph" Version="1.0.0" />
paket add GreatIdeas.MailServices.MsGraph --version 1.0.0
#r "nuget: GreatIdeas.MailServices.MsGraph, 1.0.0"
// Install GreatIdeas.MailServices.MsGraph as a Cake Addin #addin nuget:?package=GreatIdeas.MailServices.MsGraph&version=1.0.0 // Install GreatIdeas.MailServices.MsGraph as a Cake Tool #tool nuget:?package=GreatIdeas.MailServices.MsGraph&version=1.0.0
GreatIdeas.MailServices.MsGraph
This repository implements the sending of emails using the Microsoft Graph SDK. You will need your Azure Active Directory details configured in the appsettings.json
file.
The service is registered as scoped and can be injected into your application.
Register the IMsGraphMailService
Add the following to the appsettings.json
file.
NB: The UserObjectId
is the Object Id
of the user in Azure AD. This can be found in the Azure Portal under Azure Active Directory
→ Users
→ User
→ Overview
→ Object ID
{
"AzureAd": {
"ClientId": "",
"ClientSecret": "",
"Instance": "https://login.microsoftonline.com/",
"Domain": "domain.com",
"TenantId": "",
"UserObjectId": ""
},
"AllowedHosts": "*"
}
Register the service in the program.cs
file
builder.Services.AddMsGraphMailService();
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- GreatIdeas.MailServices (>= 1.0.0)
- Microsoft.Graph (>= 4.53.0)
- Microsoft.Identity.Web.MicrosoftGraph (>= 1.26.0)
-
net7.0
- GreatIdeas.MailServices (>= 1.0.0)
- Microsoft.Graph (>= 4.53.0)
- Microsoft.Identity.Web.MicrosoftGraph (>= 1.26.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.