diff --git a/Src/SmtpServer/SmtpServerOptionsBuilder.cs b/Src/SmtpServer/SmtpServerOptionsBuilder.cs index 7516728..1c9b46e 100644 --- a/Src/SmtpServer/SmtpServerOptionsBuilder.cs +++ b/Src/SmtpServer/SmtpServerOptionsBuilder.cs @@ -165,10 +165,10 @@ public SmtpServerOptionsBuilder CommandWaitTimeout(TimeSpan value) /// /// A delegate that returns the greeting message to send to the client, /// based on the (e.g., client IP, TLS state). - /// Example: ctx => $"220 {sessionContext.ServerOptions.ServerName} ESMTP ready" + /// Example: sessionContext => $"220 {sessionContext.ServerOptions.ServerName} ESMTP ready" /// /// An OptionsBuilder to continue building on. - public SmtpServerOptionsBuilder CustomGreetingMessage(Func smtpGreetingFunc) + public SmtpServerOptionsBuilder CustomSmtpGreeting(Func smtpGreetingFunc) { _setters.Add(options => options.CustomSmtpGreeting = smtpGreetingFunc);