An open API service indexing awesome lists of open source software.

https://github.com/zhaytam/fakemailwatcher

A helper class that watchs a FakeMailGenerator email for new mails.
https://github.com/zhaytam/fakemailwatcher

Last synced: about 1 month ago
JSON representation

A helper class that watchs a FakeMailGenerator email for new mails.

Awesome Lists containing this project

README

        

# FakeMailWatcher
A helper class that watchs a FakeMailGenerator email for new mails.

This library is made with .NET Standard 2.0.

## How to use

Watch mails for *[email protected]*.
```csharp
var watcher = new MailWatcher("dayrep.com", "testemail457").OnMailReceived((watcher, mail) =>
{
Console.WriteLine("Mail #{0} received from {1}.", mail.Id, mail.From);
}).Start();
```

Watch mails coming from *[email protected]* for *[email protected]*
```csharp
var watcher = new MailWatcher("dayrep.com", "testemail457", "[email protected]").OnMailReceived((watcher, mail) =>
{
Console.WriteLine("Mail #{0} received from {1}.", mail.Id, mail.From);
}).Start();
```