SMTP-Server-Komponente für DotNet

Posted . Visible to the public.

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);
Stephan Blaurock
Last edit
Stephan Blaurock
Posted by Stephan Blaurock to Programming KB (2018-04-26 07:31)