> ## 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.

# Ruby

> Send emails from Ruby using the SendKit SDK.

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

  <Card title="Package" icon="gem" href="https://rubygems.org/gems/sendkit">
    View on RubyGems
  </Card>
</CardGroup>

## Install

<CodeGroup>
  ```bash gem theme={null}
  gem install sendkit
  ```

  ```ruby Gemfile theme={null}
  gem "sendkit"
  ```
</CodeGroup>

## Send email

```ruby theme={null}
require "sendkit"

client = SendKit::Client.new("sk_your_api_key")

result = client.emails.send(
  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>"
)

puts result["id"]
```
