Mail Client
OxyKit.Mail.Client is a thin HttpClient SDK for send only (MailClient.SendAsync). It is not a dashboard / identity / DKIM client.
bash
dotnet add package OxyKit.Mail.ClientWire types live in OxyKit.Mail.Contracts (shared with the host; pulled in transitively).
From a suite checkout, you can also project-reference:
xml
<ProjectReference Include="..\OxyKit.Mail\src\OxyKit.Mail.Client\OxyKit.Mail.Client.csproj" />Auth options
csharp
var client = new MailClient(new MailClientOptions
{
BaseAddress = new Uri("http://localhost:5026/"),
ApiKey = "your-api-key", // X-Api-Key by default
// UseBearerAuth = true, // optional: Authorization: Bearer
});Success returns MailSendResult with EmailId, Status, and HTTP status. Failures throw MailApiException.
Framework hosts
.NET Framework 2.0 / 4.5+ should not use this package — call HTTP per Integrate › Framework.