FluentEmail.Graph
Sender for FluentEmail that uses Microsoft Graph API.
Usage
Call one of the AddGraphSender
extension methods.
var graphSenderOptions = this.Configuration
.GetSection("GraphSenderOptions")
.Get<GraphSenderOptions>();
services.AddFluentEmail("alias@test.com")
.AddRazorRenderer()
.AddGraphSender(graphSenderOptions);
Example config in appsettings.json
{
"GraphSenderOptions": {
"AppId": "your app id",
"TenantId": "your tenant id",
"Secret": "your secret here",
"SaveSentItems": true
}
}
Release
Create release with creation of new tag on main branch.
Start publish manually.
Origin
Code originally written by Matt Goldman and merged into FluentEmail repo. But it was not published to NuGet until January 2021. Because we needed this implementation we created a separate repo, modified the code a bit and published it to NuGet.