SDKs
.NET
Coming soonSend email from C# and .NET 6+ applications.
Source codegithub.com/mail-craft/mailcraft-dotnet
PackageNot on NuGet yet
The .NET SDK isn't released yet — this page shows its planned API. You can send from .NET today by calling the REST API directly.
Install
terminal
dotnet add package MailCraftSend email
Send from a verified sender on one of your domains.
Program.cs
var mailcraft = new MailCraftClient(Environment.GetEnvironmentVariable("MAILCRAFT_API_KEY"));
await mailcraft.Emails.SendAsync(new SendEmailRequest
{
From = "[email protected]",
To = new[] { "[email protected]" },
Subject = "Welcome!",
Html = "<p>Thanks for signing up.</p>",
}); Keep your API key in the MAILCRAFT_API_KEY environment variable, never in source control. Create one under Settings → API keys, scoped to just what this app needs.