Skip to content

razonrus/NLog.MailKit

 
 

Repository files navigation

NLog.MailKit

Build status NuGet

Mail target for NLog on .NET Core.

Same name and options as the original mail target, see docs of the original mailTarget

System.Net.Mail was not ported to .NET Core, so this libary is using the MailKit library

Currently not implemented:

  • PickupDirectory
  • NTLM auth

SMTP section from web.config is also not available

This library is unit tested with the SmtpServer NuGet package

How to use

Install the package: Install-Package NLog.MailKit and add to your nlog.config:

<extensions>
    <add assembly="NLog.MailKit"/>
</extensions>

Use the target "mail" and config options can be found here: https://github.com/NLog/NLog/wiki/Mail-Target

Currently not implemented:

  • PickupDirectory
  • NTLM auth

License

BSD. License of MailKit is MIT

About

Mail target for NLog on .NET Core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 98.2%
  • PowerShell 1.8%