FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

tmstar/NLog.MailKit: :mailbox_with_mail: Alternative Mail target for NLog using MailKit · GitHub

 
 

Repository files navigation

NLog.MailKit

Alternative Mail target for NLog using MailKit. Compatible with .NET standard 1, .NET standard 2 and .NET 4+

Including this package will replace the original mail target and has the same options as the original mail target, see docs of the original mailTarget

Notice that the original SmtpClient of .NET is obsolete in favor of MailKit:

Currently not implemented:

  • PickupDirectory
  • NTLM auth
  • reading SMTP section from web.config

This library is unit tested with the SmtpServer NuGet package

How to use

  1. Install the package:

    Install-Package NLog.MailKit or in your csproj:

    <PackageReference Include="NLog.MailKit" Version="3.0.0" />
  2. 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

Use skipCertificateValidation="true" for prevent AuthenticationException if your remote certificate for smtpServer is invalid - not recommend!

License

BSD. License of MailKit is MIT

About

📬 Alternative Mail target for NLog using MailKit

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL