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.
- Host: GitHub
- URL: https://github.com/zhaytam/fakemailwatcher
- Owner: zHaytam
- License: mit
- Created: 2017-12-03T20:04:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-12-03T21:34:53.000Z (over 7 years ago)
- Last Synced: 2025-02-12T15:53:13.432Z (3 months ago)
- Language: C#
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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();
```