A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/NLog/NLog.MailKit below:

NLog/NLog.MailKit: :mailbox_with_mail: Alternative Mail target for NLog using MailKit

Alternative Mail target for NLog using MailKit. Compatible with .NET standard 2+

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

Currently not implemented:

This library is integration tested with the SmtpServer NuGet package

  1. Install the package:

    Install-Package NLog.MailKit or in your csproj:

    <PackageReference Include="NLog.MailKit" Version="6.*" />
  2. Add to your nlog.config:

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

    Alternative register from code using fluent configuration API:

    LogManager.Setup().SetupExtensions(ext => ext.RegisterTarget<NLog.MailKit.MailTarget>());

See the NLog Wiki for available options and examples.

Note that the option skipCertificateValidation="true" can prevent AuthenticationException if your remote certificate for smtpServer is invalid - not recommend!

BSD. License of MailKit is MIT


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4