NLog.MailKit 5.2.0

Prefix Reserved
There is a newer version of this package available.
See the version list below for details.
dotnet add package NLog.MailKit --version 5.2.0                
NuGet\Install-Package NLog.MailKit -Version 5.2.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="NLog.MailKit" Version="5.2.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NLog.MailKit --version 5.2.0                
#r "nuget: NLog.MailKit, 5.2.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install NLog.MailKit as a Cake Addin
#addin nuget:?package=NLog.MailKit&version=5.2.0

// Install NLog.MailKit as a Cake Tool
#tool nuget:?package=NLog.MailKit&version=5.2.0                

NLog.MailKit

NuGet Build Status Bugs Vulnerabilities

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:

  • NTLM auth

This library is integration 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="5.*" />
    
  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

Product 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 netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (14)

Showing the top 5 NuGet packages that depend on NLog.MailKit:

Package Downloads
NapaGroupLLC.NapaBase

A base to create services

AppImpact.Logging.Core

App Impact Core Logging library.

Curiosity.Hosting

Hosting tools

Curiosity.Hosting.Web

Hosting tools for Web applications.

FAkka.Shared

Package Description

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on NLog.MailKit:

Repository Stars
NLog/NLog
NLog - Advanced and Structured Logging for Various .NET Platforms
Version Downloads Last updated
5.3.0 1,384 11/16/2024
5.2.0 93,575 8/30/2023
5.1.0 452 8/30/2023
5.0.0 166,174 5/22/2022
4.1.0 220,051 2/7/2022
4.0.0 39,412 11/6/2021
3.4.0 15,475 11/4/2021
3.3.0 394,348 8/27/2020
3.2.0 195,694 4/16/2020
3.1.0 237,651 8/30/2019
3.0.2 68,833 4/14/2019
3.0.1 63,607 3/14/2019
3.0.0 96,734 8/27/2018
2.2.0 101,273 3/28/2018
2.1.1 25,258 12/20/2017
2.1.0 4,859 11/22/2017
2.0.0 3,744 10/10/2017
1.1.1 10,372 8/5/2017
1.1.0 1,563 8/5/2017
1.0.0 3,235 6/3/2017

- Added support for PickupDirectoryLocation
- Added support for email headers
- Added target-alias mailkit
- Updated to NLog v5.2.2
- Updated to MailKit v3.3.0

See https://github.com/NLog/NLog.MailKit/releases