Closed tinohager closed 8 months ago
Also the Certificate
method is wrong after Port it is ony available in the endpoint builder.
var options = new SmtpServerOptionsBuilder()
.ServerName("SMTP Server")
.Endpoint(builder =>
builder
.Port(25, false)
.AllowUnsecureAuthentication(true))
.Endpoint(builder =>
builder
.Port(587, true)
.AllowUnsecureAuthentication(false)
.Certificate(CreateCertificate()))
.Endpoint(builder =>
builder
.Port(465, true)
.AllowUnsecureAuthentication(false)
.Certificate(CreateCertificate()))
.Build();
I've fixed this now.
Thanks, Cain.
https://github.com/cosullivan/SmtpServer#what-hooks-are-provided