This guide covers moving to MailForge from earlier releases.
MailForge offers a stable public API. For consumers using
the documented public API through
AddMailForge + UseProvider, no source changes are required. The changes below only
affect API surface that was publicly visible but never intended to be public.
These were implementation details that leaked into the public API in earlier releases. They are now internal (not part of the supported surface):
(Options, HttpClient) constructors on the six HTTP providers — Resend, Postmark,
Mailgun, Brevo, ZeptoMail, AzureCS. Construct with the options-only constructor
(new ResendEmailProvider(options)) which creates the HttpClient internally. If you
need an injected client for testing, use the internal seam via the test project’s
friend-assembly access.SmtpMessageMapper and SesMessageMapper — the shared MimeMessageMapper (in the core
MailForge package) remains public and is the supported MIME conversion point.PlainTextGenerator — plain-text generation stays on through
EnableAutoPlainText; the standalone utility type is no longer public.Directory.Build.props).