Digiarc.AspNetCore.Extensions.Smtp
1.0.0.4
dotnet add package Digiarc.AspNetCore.Extensions.Smtp --version 1.0.0.4
NuGet\Install-Package Digiarc.AspNetCore.Extensions.Smtp -Version 1.0.0.4
<PackageReference Include="Digiarc.AspNetCore.Extensions.Smtp" Version="1.0.0.4" />
paket add Digiarc.AspNetCore.Extensions.Smtp --version 1.0.0.4
#r "nuget: Digiarc.AspNetCore.Extensions.Smtp, 1.0.0.4"
// Install Digiarc.AspNetCore.Extensions.Smtp as a Cake Addin
#addin nuget:?package=Digiarc.AspNetCore.Extensions.Smtp&version=1.0.0.4
// Install Digiarc.AspNetCore.Extensions.Smtp as a Cake Tool
#tool nuget:?package=Digiarc.AspNetCore.Extensions.Smtp&version=1.0.0.4
Digiarc (Pty) Ltd
Digiarc is an innovative company that strives for customer satisfaction and world class service. We offer bespoke business software solutions with up-to-date technology and well formed processes.
Installation
You can use the NUGET package manager for installation.
Platform Support
This package is made for ASP.Net Core applications as it makes use of dependency injection on the IServiceCollection.
Usage
using Digiarc.AspNetCore.Extensions.Smtp;
# Configure SMTP Options (ConfigureServices)
services.Configure<SmtpOptions>(Configuration.GetSection("SmtpOptions"));
# Add SMTP Service (ConfigureServices)
services.AddSmtpService();
# Invoke SMTP Service (Controller)
private readonly ISmtpService _service;
public HomeController(ISmtpService service)
{
_service = service;
}
[HttpGet]
[Route("[action]")]
public async Task<IActionResult> SendEmailTest()
{
string emailBodyContent = "<html><head><title>Send Email Test</title></head><body><h1>Hello!</h1></body></html>";
string receiverDisplayName = "John Doe";
string receiverEmail = "john@doe.com";
string settingName = "johndoe";
string subject = "SMTP Test";
var result = await _service.SendEmailAsync(emailBodyContent, receiverDisplayName, receiverEmail, settingName, subject);
return Ok(new { message = result.Message, statusCode = result.StatusCode, result = result.Success, });
}
Contributing
Contributions will not be accepted as this not an open source project.
License
This package is licensed under LGPL and will not accept external intervention.
For more information you can visit the GNU Lesser General Public License Page.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.1
- Microsoft.Extensions.Options (>= 6.0.0)
- NETCore.MailKit (>= 2.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0.4 | 408 | 6/14/2022 |
Add extensions methods to validate a string for an emal address.