EmailSwitch 10.0.0
dotnet add package EmailSwitch --version 10.0.0
NuGet\Install-Package EmailSwitch -Version 10.0.0
<PackageReference Include="EmailSwitch" Version="10.0.0" />
<PackageVersion Include="EmailSwitch" Version="10.0.0" />
<PackageReference Include="EmailSwitch" />
paket add EmailSwitch --version 10.0.0
#r "nuget: EmailSwitch, 10.0.0"
#:package EmailSwitch@10.0.0
#addin nuget:?package=EmailSwitch&version=10.0.0
#tool nuget:?package=EmailSwitch&version=10.0.0
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 | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- HumanLanguages (>= 10.2.0)
- MongoDbTokenManager (>= 10.0.0)
- SendGrid (>= 9.29.3)
- SMSwitch (>= 10.1.0)
- uSignIn.CommonSettings (>= 10.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.
| Version | Downloads | Last Updated |
|---|---|---|
| 10.0.0 | 64 | 11/25/2025 |
| 5.0.0 | 525 | 1/8/2025 |
| 4.0.1 | 208 | 8/3/2024 |
| 4.0.0 | 130 | 8/3/2024 |
| 3.0.3 | 151 | 8/2/2024 |
| 3.0.2 | 121 | 8/2/2024 |
| 3.0.1 | 128 | 8/2/2024 |
| 3.0.0 | 120 | 8/2/2024 |
| 2.0.4 | 134 | 8/2/2024 |
| 2.0.3 | 127 | 8/2/2024 |
| 2.0.2 | 154 | 7/29/2024 |
| 2.0.1 | 142 | 7/28/2024 |
| 2.0.0 | 153 | 7/28/2024 |
| 1.1.0 | 150 | 7/28/2024 |