Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
coronabytes authored Jan 18, 2024
1 parent 0c04122 commit bca348d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ dotnet add package Core.Email.Provider.SES
- mailjet
- sendgrid
- postmark
- TODO
- attachments
- bounce handlers

# Usage
appsettings.json
Expand Down Expand Up @@ -47,12 +50,13 @@ appsettings.json
}
```

- use .NET 8 keyed services to have multiple configurations of the same provider
```csharp
serviceCollection.AddCoreEmail();
serviceCollection.AddSmtpProvider("SMTP");
serviceCollection.AddPostmarkProvider("Postmark");
serviceCollection.AddSendGridProvider("SendGrid");
serviceCollection.AddMailjetProvider("MailJet");
serviceCollection.AddMailjetProvider("Mailjet");
serviceCollection.AddSimpleEmailServiceProvider("SES");

var email = serviceProvider.GetRequiredService<ICoreEmail>();
Expand Down

0 comments on commit bca348d

Please sign in to comment.