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 year 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 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-03T21:34:53.000Z (over 8 years ago)
- Last Synced: 2025-02-12T15:53:13.432Z (over 1 year 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 *testemail457@dayrep.com*.
```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 *xer-noreply@gmail.com* for *testemail457@dayrep.com*
```csharp
var watcher = new MailWatcher("dayrep.com", "testemail457", "xer-noreply@gmail.com").OnMailReceived((watcher, mail) =>
{
Console.WriteLine("Mail #{0} received from {1}.", mail.Id, mail.From);
}).Start();
```