Skip to content

Make MailKitSender.CreateMailMessage protected virtual (fixes #388) - #392

Open
SENESO wants to merge 1 commit into
lukencode:masterfrom
SENESO:upstream-pr-388
Open

SENESO wants to merge 1 commit into
lukencode:masterfrom
SENESO:upstream-pr-388

Conversation

@SENESO

@SENESO SENESO commented Oct 8, 2026

Copy link
Copy Markdown

Fixes #388.

Makes MailKitSender.CreateMailMessage protected virtual so subclasses can preprocess the MimeMessage before sending (e.g. DKIM-sign it), exactly as requested in the issue.

One-word change (private → protected virtual) plus XML doc update. Includes a test (CanPreprocessMessageByOverridingCreateMailMessage) proving a subclass can modify the outgoing message.

Fully backward compatible — no behavior change unless subclassed.

…ncode#388)

Allows subclassing MailKitSender to preprocess the MimeMessage before
sending (e.g. DKIM-signing), as requested in
lukencode#388.

Adds CanPreprocessMessageByOverridingCreateMailMessage test proving a
subclass can modify the outgoing message.
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.

MailKitSender - make it possible to preprocess MimeMessage instances after creation before sending

1 participant