You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This library provides an easy to use implementation of Resendbased email delivery. This abstraction with proper interfaces allows email implementation inside of your project with little effort and easy to manage integration, and boasts features such as automatic environment name appending as well as robust email templates.
7
+
This library provides an easy-to-use implementation of Resend-based email delivery. This abstraction with proper interfaces allows email implementation inside of your project with little effort and easy-to-manage integration, and boasts features such as automatic environment name appending as well as robust email templates.
8
8
9
9
This package depends on the ICG.NetCore.Utilities.Email project for template implementation
10
10
@@ -14,6 +14,9 @@ The following additional NuGet packages are installed with this extension.
14
14
*[Resend](https://www.nuget.org/packages/resend/) - For email delivery
15
15
*[ICG NET Core Utilities Email](https://github.com/IowaComputerGurus/netcore.utilities.email) - For Email Template Configuration
16
16
17
+
### Resend Account
18
+
You must have a [Resend Account](https://www.resend.com) and an API key value to utilize this service.
19
+
17
20
## Usage
18
21
19
22
### Installation
@@ -28,14 +31,13 @@ To setup the needed dependency injection items for this library, add the followi
28
31
services.UseIcgNetCoreUtilitiesEmailResend();
29
32
```
30
33
31
-
Additionally you must specify the needed configuration elements within your AppSettings.json file
34
+
Additionally, you must specify the needed configuration elements within your AppSettings.json file
@@ -51,7 +53,6 @@ Additionally you must specify the needed configuration elements within your AppS
51
53
| AdminEmail | This is the email address used as the "from" address and also for any usage of the "SendToAdministrator" option |
52
54
| AdminName | If specified this is the name that will be used for the "From" address on all outbound emails |
53
55
| ResendApiKey | The API Key to use for default sending of email addresses |
54
-
| AdditionalApiKeys | These are name/value pairs of additional API keys that could be used for sending emails. Totally optional |
55
56
| AlwaysTemplateEmails | If selected ALL emails sent will be templated, by default using the "DefaultTemplate" as configured |
56
57
| AddEnvironmentSuffix | If selected, all outbound emails sent from non-production addresses will have the environment name added to the end of the subject |
57
58
| DefaultTemplatePath | The path, relative to the application root, where the default HTML template can be found for emails |
@@ -60,7 +61,7 @@ Additionally you must specify the needed configuration elements within your AppS
60
61
61
62
### Usage
62
63
63
-
Usage is primarly completed by injecting the IEmailService interface to your respective project, one injected emails can be sent with a single line of code.
64
+
Usage is primarily completed by injecting the IEmailService interface into your respective project, and one injected email can be sent with a single line of code.
64
65
65
66
```csharp
66
67
_ResendService.SendEmail("recipient@me.com", "My Subject", "<p>Hello!</p>");
0 commit comments