cmendible/netDumbster

netDumbster is a .Net Fake SMTP Server clone of the popular Dumbster

132

stars

138

commits

C#

primary language

Jul 22, 2024

updated

c-sharp
hacktoberfest
smtp
smtp-server
unit-testing

README

dotnetcore

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;
    };

Contributors

cmendible

117 commits

joaopgrassi

5 commits

VILLAN3LL3

3 commits

mindriven

2 commits

cmendible/netDumbster

netDumbster is a .Net Fake SMTP Server clone of the popular Dumbster

132

stars

138

commits

C#

primary language

Jul 22, 2024

updated

c-sharp
hacktoberfest
smtp
smtp-server
unit-testing

README

dotnetcore

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;
    };

Contributors

cmendible

117 commits

joaopgrassi

5 commits

VILLAN3LL3

3 commits

mindriven

2 commits

Languages

C#

99.4%