> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sendkit.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# .NET

> Send emails from C# and .NET using the SendKit SDK.

<CardGroup cols={2}>
  <Card title="Source Code" icon="github" href="https://github.com/sendkitdev/sendkit-dotnet">
    View on GitHub
  </Card>

  <Card title="Package" icon="box" href="https://www.nuget.org/packages/SendKit">
    View on NuGet
  </Card>
</CardGroup>

## Install

```bash theme={null}
dotnet add package SendKit
```

## Send email

```csharp theme={null}
using SendKit;

var client = new SendKitClient("sk_your_api_key");

var response = await client.Emails.SendAsync(new SendEmailParams
{
    From = "Your Name <you@yourdomain.com>",
    To = ["recipient@example.com"],
    Subject = "Hello from SendKit",
    Html = "<h1>Welcome!</h1><p>Your first email with SendKit.</p>"
});

Console.WriteLine($"Email sent: {response.Id}");
```
