Info
Version: | 1.1.0 |
Author(s): | Zack Yang |
Last Update: | Friday, March 26, 2021 |
.NET Fiddle: | Create the first Fiddle |
Project Url: | https://github.com/yangzhongke/YouZack.ErrorMail |
NuGet Url: | https://www.nuget.org/packages/YouZack.ErrorMail |
Install
Install-Package YouZack.ErrorMail
dotnet add package YouZack.ErrorMail
paket add YouZack.ErrorMail
YouZack.ErrorMail Download (Unzip the "nupkg" after downloading)
Dependencies
- Microsoft.Extensions.Logging(>= 3.1.2)
- Microsoft.Extensions.Logging.Abstractions(>= 3.1.2)
services.AddLogging(builder => {
builder.AddErrorMail(opt => {
opt.From = "[email protected]";
opt.To = new []{"[email protected]" };
opt.IntervalSeconds = 30;
opt.SendSameErrorOnlyOnce = true;
opt.SmtpEnableSsl = true;
opt.SmtpUserName = "[email protected]";
opt.SmtpPassword = "2323423fasfadsaf";
opt.SmtpServer = "smtp.xxx.com";
opt.SmtpEnableSsl = true;
});
});.