Skip to main content

Install

gem install sendkit

Send email

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"]