RamsonDevelopers.UtilEmail
2.2.0
dotnet add package RamsonDevelopers.UtilEmail --version 2.2.0
NuGet\Install-Package RamsonDevelopers.UtilEmail -Version 2.2.0
<PackageReference Include="RamsonDevelopers.UtilEmail" Version="2.2.0" />
paket add RamsonDevelopers.UtilEmail --version 2.2.0
#r "nuget: RamsonDevelopers.UtilEmail, 2.2.0"
// Install RamsonDevelopers.UtilEmail as a Cake Addin #addin nuget:?package=RamsonDevelopers.UtilEmail&version=2.2.0 // Install RamsonDevelopers.UtilEmail as a Cake Tool #tool nuget:?package=RamsonDevelopers.UtilEmail&version=2.2.0
RamsonDevelopers.UtilEmail
RamsonDevelopers.UtilEmail is a .NET class library that provides functionality to send emails using custom credentials. It utilizes the EmailConfig
class to store and retrieve email configuration settings.
Installation
To use RamsonDevelopers.UtilEmail in your project, follow these steps:
Download the RamsonDevelopers.UtilEmail source code or add it as a NuGet package to your solution.
Add a reference to the AddEmailService() Method in RamsonDevelopers.UtilEmail project or the installed NuGet package in your target project's program.cs.
IConfiguration configuration = builder.Configuration;
var emailConfig = configuration.GetSection(EmailConfig.SectionLabel);
builder.Services.Configure<EmailConfig>(emailConfig);
builder.Services.AddEmailService();
Usage
To send emails using RamsonDevelopers.UtilEmail, follow these steps:
inside your
appsettings.json
add the following section with your actual credentials"MailConfiguration": { "Server" : "your-email-server", "Port" : 25, "UserName" : "your-username", "Password" : "your-password", "UseSsl" : true, "TargetName" : "your-target-name", "FromName" : "your-sender-name", "FromAddress" : "your-sender-address", "ReplyToAddress" : "your-reply-to-address" }
Create an instance of SendEmailRequest class and configure appropriate values
Create an instance of IEmailService through dependency injection.
Invoke
SendEMailAsync
Method inside theEmailService
and pass the request object.
Credits
RamsonDevelopers.UtilEmail was developed by Ayush Aher and is maintained by Ramson Developers. We would like to acknowledge the contributions of the open-source community and express our gratitude to all the contributors who helped make this project possible.
Feedback
If you have any feedback, please reach out to us at info@ramson-developers.com or Raise a Issue in Github Repository
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 | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
.NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen40 was computed. 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.0
- Serilog.AspNetCore (>= 6.1.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on RamsonDevelopers.UtilEmail:
Package | Downloads |
---|---|
Hyperspan.Auth
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.