EmailSwitch 4.0.1

dotnet add package EmailSwitch --version 4.0.1                
NuGet\Install-Package EmailSwitch -Version 4.0.1                
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="EmailSwitch" Version="4.0.1" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add EmailSwitch --version 4.0.1                
#r "nuget: EmailSwitch, 4.0.1"                
#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 EmailSwitch as a Cake Addin
#addin nuget:?package=EmailSwitch&version=4.0.1

// Install EmailSwitch as a Cake Tool
#tool nuget:?package=EmailSwitch&version=4.0.1                

EmailSwitch

EmailSwitch is an open-source C# class library that provides a wrapper around existing services that are used to verify emails and send messages. The service stores information in a MongoDb database that you configure using the package MongoDbService

Features

  • Covers only SendGrid as of today (possible to cover more if needed)
  • Usage information is stored in your own MongoDB instance for audit reasons

Contributing

We welcome contributions! If you find a bug, have an idea for improvement, please submit an issue or a pull request on GitHub.

Getting Started

NuGet Package

To include EmailSwitch in your project, install the NuGet package:

dotnet add package EmailSwitch

Then in your appsettings.json add the following sample configuration and change the values to match the details of your credentials to the various services.

  "EmailSwitchSettings": {
  "OtpLength": 6,
  "Controls": {
    "MaxRoundRobinAttempts": 2,
    "Priority": [ "SendGrid" ],
    "MaximumFailedAttemptsToVerify": 3,
    "SessionTimeoutInSeconds": 240
  },
  "SendGrid": {
    "From": "abc@xyz.com",
    "Password": "MovedToSecret"
  }
}

After the above is done, you can just Dependency inject the EmailSwitch in your C# class.

For example:
TODO

GitHub Repository

Visit our GitHub repository for the latest updates, documentation, and community contributions. https://github.com/prmeyn/EmailSwitch

License

This project is licensed under the GNU AFFERO GENERAL PUBLIC LICENSE

Happy coding! 🚀🌐📚

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.0.1 128 8/3/2024
4.0.0 70 8/3/2024
3.0.3 90 8/2/2024
3.0.2 63 8/2/2024
3.0.1 79 8/2/2024
3.0.0 67 8/2/2024
2.0.4 68 8/2/2024
2.0.3 67 8/2/2024
2.0.2 85 7/29/2024
2.0.1 85 7/28/2024
2.0.0 90 7/28/2024
1.1.0 86 7/28/2024