Damit lässt sich ganz einfach ein SMTP-Dienst unter DotNet realisieren.
Beispiel:
var options = new SmtpServerOptionsBuilder()
    .ServerName("localhost")
    .Port(25, 587)
    .Build();
var smtpServer = new SmtpServer.SmtpServer(options);
await smtpServer.StartAsync(CancellationToken.None);
Posted by Stephan Blaurock to Programming KB (2018-04-26 07:31)