Mailgun backend for Regira Office mail, sending through the Mailgun REST API with RestSharp. MailGunMailer implements IMailService, and services.AddMailGun(...) configures MailgunConfig and registers the mailer as a transient IMailService. MailgunConfig.TestMode has Mailgun accept and log each message without delivering it.
<PackageReference Include="Regira.Office.Mail.MailGun" Version="6.*" />
Requires a Mailgun account: MailgunConfig takes the API endpoint, an API key and the sending domain.
IMailService, the message models, MailgunConfig and test mode, DI registration, and the exceptions a refused send throwsApache License 2.0 — this package contains no license validation and no runtime limits. See LICENSE. A few companion packages are commercially licensed with a free tier; see the licensing overview.