From 93cd55906c0b2cdb476e0ac95a7bccb2f82bea00 Mon Sep 17 00:00:00 2001 From: Rolf Kristensen Date: Wed, 18 Mar 2026 21:04:24 +0100 Subject: [PATCH] Updated RequiredPropertyIsEmptyFormat to be more clear --- src/NLog.MailKit/MailTarget.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NLog.MailKit/MailTarget.cs b/src/NLog.MailKit/MailTarget.cs index d24c572..b9f29d4 100644 --- a/src/NLog.MailKit/MailTarget.cs +++ b/src/NLog.MailKit/MailTarget.cs @@ -85,7 +85,7 @@ public class MailTarget : TargetWithLayoutHeaderAndFooter private static readonly Encoding DefaultEncoding = System.Text.Encoding.UTF8; private const SecureSocketOptions DefaultSecureSocketOption = SecureSocketOptions.StartTlsWhenAvailable; - private const string RequiredPropertyIsEmptyFormat = "After the processing of the MailTarget's '{0}' property it appears to be empty. The email message will not be sent."; + private const string RequiredPropertyIsEmptyFormat = "MailTarget '{0}'-property appears to be empty. The email message cannot be sent."; /// /// Initializes a new instance of the class.