MailService_alaminshaon 1.0.0
dotnet add package MailService_alaminshaon --version 1.0.0
NuGet\Install-Package MailService_alaminshaon -Version 1.0.0
<PackageReference Include="MailService_alaminshaon" Version="1.0.0" />
paket add MailService_alaminshaon --version 1.0.0
#r "nuget: MailService_alaminshaon, 1.0.0"
// Install MailService_alaminshaon as a Cake Addin
#addin nuget:?package=MailService_alaminshaon&version=1.0.0
// Install MailService_alaminshaon as a Cake Tool
#tool nuget:?package=MailService_alaminshaon&version=1.0.0
email send using smtp server. it is helpful for student to learn
To use mail service
Add dll file for mail service
add SmtpSettings option in appsettings.json file like below "SmtpSettings": { //gmail //"Server": "smtp.gmail.com", //"Port": 587, //"SenderEmail": "abcd@gmail.com", //"Password": "123456"
// hotmail //"Server": "smtp.live.com", //"Port": 587, //"SenderEmail": "abcd@gmail.com", //"Password": "123456"
// office 365 "Server": "smtp.office365.com", "Port": 587, //"SenderEmail": "abcd@gmail.com", //"Password": "123456" }
add service in startup page like below public class Startup { private readonly IConfiguration Configuration;
public Startup(IConfiguration configuration) { Configuration = configuration; } public void ConfigureServices(IServiceCollection services) { services.AddControllersWithViews(); //Email Notification services.Configure<SmtpSettings>(Configuration.GetSection("SmtpSettings")); services.AddSingleton<IMailer, Mailer>(); }
}
----------------End--------------------------
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.1 is compatible. |
-
.NETCoreApp 3.1
- MailKit (>= 2.10.1)
- Microsoft.Extensions.Options (>= 5.0.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 | 362 | 1/24/2021 |