Sender for FluentEmail that uses Microsoft Graph API.
Call one of the AddGraphSender
extension methods.
var graphSenderOptions = this.Configuration
.GetSection("GraphSenderOptions")
.Get<GraphSenderOptions>();
services.AddFluentEmail("[email protected]")
.AddRazorRenderer()
.AddGraphSender(graphSenderOptions);
Example config in appsettings.json
{
"GraphSenderOptions": {
"AppId": "your app id",
"TenantId": "your tenant id",
"Secret": "your secret here",
"SaveSentItems": true
}
}
Add tag to main branch and start publish manually.
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.