Code · 12 lines · 298 bytes
1
2
3
4
5
6
7
8
9
10
11
12using MailSharp.SMTP.Extensions;
namespace MailSharp.SMTP.Session;

public partial class SmtpSession
{
	// Handle QUIT command
	private async Task HandleQuitAsync(string[] parts, string line, CancellationToken ct)
	{
		await writer.WriteLineAsync(configuration["SmtpResponses:Quit"], ct);
	}

}