Skip to content

thesheps/selfishsmtp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selfishsmtp

Self-hosted smtp server for .net core testing

Does exactly that.

[Test]
public void WhenIDoAThing_ThenAnEmailIsSent() 
{
  using(var smtpServer = new SmtpServer(25))
  {
    var thingerer = new Thinger();
    thingerer.SendEmail("from@place.com", "to@otherplace.com", "This is an email!");
    
    Assert.That(smtpServer.Messages.Count, Is.EqualTo(1));
  }
}

About

Self-hosted smtp server for .net core testing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages