{"id":13445572,"url":"https://github.com/NLog/NLog.MailKit","last_synced_at":"2025-03-20T21:30:52.957Z","repository":{"id":20375466,"uuid":"89786966","full_name":"NLog/NLog.MailKit","owner":"NLog","description":":mailbox_with_mail: Alternative Mail target for NLog using MailKit","archived":false,"fork":false,"pushed_at":"2024-06-23T16:04:49.000Z","size":178,"stargazers_count":13,"open_issues_count":2,"forks_count":8,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-09-17T01:38:33.932Z","etag":null,"topics":["csharp","dotnet","mail","mailkit","net-core","net45","netstandard","netstandard20","nlog","nlog-target"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NLog.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-29T13:26:51.000Z","updated_at":"2024-06-23T16:04:52.000Z","dependencies_parsed_at":"2024-01-05T20:52:22.512Z","dependency_job_id":"a3de9d99-11ac-45e8-b667-fb554e2e7a91","html_url":"https://github.com/NLog/NLog.MailKit","commit_stats":{"total_commits":117,"total_committers":10,"mean_commits":11.7,"dds":0.3076923076923077,"last_synced_commit":"7db53069670516e6eb714b44fe27fc37b1fdd3ca"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.MailKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.MailKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.MailKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NLog%2FNLog.MailKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NLog","download_url":"https://codeload.github.com/NLog/NLog.MailKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221807736,"owners_count":16883639,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","mail","mailkit","net-core","net45","netstandard","netstandard20","nlog","nlog-target"],"created_at":"2024-07-31T05:00:36.089Z","updated_at":"2025-03-20T21:30:52.952Z","avatar_url":"https://github.com/NLog.png","language":"C#","funding_links":[],"categories":["Frameworks, Libraries and Tools","框架, 库和工具"],"sub_categories":["Logging","日志"],"readme":"# NLog.MailKit\n\n[![NuGet](https://img.shields.io/nuget/v/NLog.MailKit.svg)](https://www.nuget.org/packages/NLog.MailKit)\n[![Build Status](https://dev.azure.com/NLogLogging/NLog/_apis/build/status/NLog.MailKit?branchName=master)](https://dev.azure.com/NLogLogging/NLog/_build/latest?definitionId=25\u0026branchName=master)\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=nlog.mailkit\u0026metric=bugs)](https://sonarcloud.io/summary/new_code?id=nlog.mailkit)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=nlog.mailkit\u0026metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=nlog.mailkit)\n[![](https://sonarcloud.io/api/project_badges/measure?project=nlog.mailkit\u0026metric=code_smells)](https://sonarcloud.io/project/issues?id=nlog.mailkit\u0026resolved=false\u0026types=CODE_SMELL) \n[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=nlog.mailkit\u0026metric=coverage)](https://sonarcloud.io/component_measures?id=nlog.mailkit\u0026metric=coverage)\n\nAlternative Mail target for [NLog](https://github.com/nlog/nlog) using [MailKit](https://github.com/jstedfast/MailKit). Compatible with .NET standard 2+ \n\nIncluding this package will replace the original mail target and has the\nsame options as the original mail target, see [docs of the original mailTarget](https://github.com/NLog/NLog/wiki/Mail-Target)\n\nCurrently not implemented:\n\n- NTLM auth\n\nThis library is integration tested with the [SmtpServer NuGet package](https://www.nuget.org/packages/SmtpServer/)\n\n\n### How to use\n\n1) Install the package: \n\n    `Install-Package NLog.MailKit` or in your csproj:\n\n    ```xml\n    \u003cPackageReference Include=\"NLog.MailKit\" Version=\"5.*\" /\u003e\n    ```\n\n2) Add to your nlog.config:\n\n    ```xml\n    \u003cextensions\u003e\n        \u003cadd assembly=\"NLog.MailKit\"/\u003e\n    \u003c/extensions\u003e\n    ```\n\n   Alternative register from code using [fluent configuration API](https://github.com/NLog/NLog/wiki/Fluent-Configuration-API):\n\n    ```xml\n    LogManager.Setup().SetupExtensions(ext =\u003e ext.RegisterTarget\u003cNLog.MailKit.MailTarget\u003e());\n    ```\n\nSee the [NLog Wiki](https://github.com/NLog/NLog/wiki/Mail-Target) for available options and examples.\n\nNote that the option `skipCertificateValidation=\"true\"` can prevent `AuthenticationException` if your remote certificate for smtpServer is invalid - not recommend!\n\n### License\nBSD. License of MailKit is MIT\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNLog%2FNLog.MailKit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FNLog%2FNLog.MailKit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FNLog%2FNLog.MailKit/lists"}