Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/cmendible/netDumbster
netDumbster is a .Net Fake SMTP Server clone of the popular Dumbster
https://github.com/cmendible/netDumbster
c-sharp hacktoberfest smtp smtp-server unit-testing
Last synced: about 2 months ago
JSON representation
netDumbster is a .Net Fake SMTP Server clone of the popular Dumbster
- Host: GitHub
- URL: https://github.com/cmendible/netDumbster
- Owner: cmendible
- Created: 2011-07-11T21:27:49.000Z (almost 13 years ago)
- Default Branch: main
- Last Pushed: 2024-03-29T11:16:13.000Z (3 months ago)
- Last Synced: 2024-03-30T08:48:24.535Z (3 months ago)
- Topics: c-sharp, hacktoberfest, smtp, smtp-server, unit-testing
- Language: C#
- Homepage:
- Size: 4.06 MB
- Stars: 120
- Watchers: 10
- Forks: 37
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Lists
- awesome-dotnet-core - netDumbster - a .Net Fake SMTP Server used for testing. Clone of the popular Dumbster. (Frameworks, Libraries and Tools / Mail)
- Awesome-Nuget-Packages - **netDumbster**
- awesome-dotnet-core - netDumbster - 用于测试的.Net假SMTP服务器。克隆流行的Dumbster。 (框架, 库和工具 / 邮件)
- awesome-dotnet-core - netDumbster - a .Net Fake SMTP Server used for testing. Clone of the popular Dumbster. (Frameworks, Libraries and Tools / Mail)
- awesome-dotnet-core - netDumbster - a .Net Fake SMTP Server used for testing. Clone of the popular Dumbster. (Frameworks, Libraries and Tools / Mail)
- awesome-dotnet-core-master - netDumbster - a .Net Fake SMTP Server used for testing. Clone of the popular Dumbster. (Frameworks, Libraries and Tools / Mail)
- awesome-dotnet-core - netDumbster - a .Net Fake SMTP Server used for testing. Clone of the popular Dumbster. (Frameworks, Libraries and Tools / Mail)
- awesome-dotnet-core - netDumbster - a .Net Fake SMTP Server used for testing. Clone of the popular Dumbster. (Frameworks, Libraries and Tools / Mail)
- system-architecture-awesome - netDumbster - a .Net Fake SMTP Server used for testing. Clone of the popular Dumbster. (Mail)
- awesome-dotnet-core - netDumbster - a .Net Fake SMTP Server used for testing. Clone of the popular Dumbster. (Frameworks, Libraries and Tools / Mail)
- awesome-dotnet-core - netDumbster - a .Net Fake SMTP Server used for testing. Clone of the popular Dumbster. (Frameworks, Libraries and Tools / Mail)
- awesome-dotnet-core - netDumbster - a .Net Fake SMTP Server used for testing. Clone of the popular Dumbster. (Frameworks, Libraries and Tools / Mail)
- fucking-awesome-dotnet-core - netDumbster - a .Net Fake SMTP Server used for testing. Clone of the popular Dumbster. (Frameworks, Libraries and Tools / Mail)
README
![dotnetcore](https://github.com/cmendible/netDumbster/workflows/dotnetcore/badge.svg)
# netDumbster
**netDumbster** is a .Net Fake SMTP Server clone of the popular **Dumbster**.**netDumbster** is based on the API of **nDumbster** (http://ndumbster.sourceforge.net/default.html) and the nice C# Email Server (CSES) written by Eric Daugherty.
License: http://www.apache.org/licenses/LICENSE-2.0.html
# Usage
Create a netDumbster Server instance:
````
using var server = SimpleSmtpServer.Start(port);
````Check received email count:
````
var count = server.ReceivedEmailCount
````Get the body of the first email received:
````
var smtpMessage = server.ReceivedEmail[0];
var body = smtpMessage.MessageParts[0].BodyData
````Subscribe to the message received event:
````
server.MessageReceived += (sender, args) =>
{
// Get message body.
var body = args.Message.MessageParts[0].BodyData;
};
````