Skip to content

Conversation

@tinohager
Copy link
Contributor

@tinohager tinohager commented Aug 4, 2025

The change renames the CustomGreetingMessage method to CustomSmtpGreeting and updates the example delegate parameter to use a more descriptive variable name (sessionContext) for clarity.

var options = new SmtpServerOptionsBuilder()
    .ServerName("SMTP Server")
    .Port(9025)
    .CustomSmtpGreeting(MyCustomSmtpGreeting)
    .Build();

private static string MyCustomSmtpGreeting(ISessionContext sessionContext)
{
    return $"220 {sessionContext.ServerOptions.ServerName} hello";
}

@tinohager tinohager changed the title Update SmtpServerOptionsBuilder.cs Fix SmtpServerOptionsBuilder naming for CustomSmtpGreeting Aug 4, 2025
@cosullivan cosullivan merged commit c6c7b15 into cosullivan:master Aug 20, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants