EmailSwitch 2.0.2
See the version list below for details.
dotnet add package EmailSwitch --version 2.0.2
NuGet\Install-Package EmailSwitch -Version 2.0.2
<PackageReference Include="EmailSwitch" Version="2.0.2" />
paket add EmailSwitch --version 2.0.2
#r "nuget: EmailSwitch, 2.0.2"
// Install EmailSwitch as a Cake Addin #addin nuget:?package=EmailSwitch&version=2.0.2 // Install EmailSwitch as a Cake Tool #tool nuget:?package=EmailSwitch&version=2.0.2
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 | Versions 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. |
-
net8.0
- HumanLanguages (>= 10.0.0)
- MongoDbTokenManager (>= 4.0.0)
- SendGrid (>= 9.29.3)
- SMSwitch (>= 6.0.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.