Skip to content

Latest commit

 

History

History
43 lines (31 loc) · 1.49 KB

README.md

File metadata and controls

43 lines (31 loc) · 1.49 KB

FluentEmail.Graph

Sender for FluentEmail that uses Microsoft Graph API.

Nuget

CI CodeQL Publish

Usage

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
  }
}

Release

Add tag to main branch and 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.