Skip to content

nager/Nager.EmailAuthentication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nager.EmailAuthentication

Nager.EmailAuthentication is a .NET library designed to parse and validate DMARC records easily. With built-in support for error handling and validation, this library simplifies working with email authentication configurations.

Features

  • Parse DMARC records with comprehensive validation.
  • Identify and report errors in DMARC configurations.

Installation

The package is available on nuget

PM> install-package Nager.EmailAuthentication

or

dotnet add package Nager.EmailAuthentication

Examples

Parsing a DMARC Record

var dmarcRecord = "v=DMARC1; p=reject;";
if (!DmarcRecordParser.TryParse(dmarcRecord, out var dmarcDataFragment))
{
}

Handling Validation Errors

var dmarcRecord = "v=DMARC1; p=invalid;";
if (!DmarcRecordParser.TryParse(dmarcRecord, out var dmarcDataFragment, out var parseErrors))
{
}

License

This project is licensed under the MIT License. See the LICENSE file for details.

Releases

No releases published

Packages

No packages published

Languages