Ruby
Official gem for Ruby 3+.
Install
gem
gem install xurelUsage
send.rb
require "xurel"
client = Xurel::Client.new(api_key: ENV["XUREL_API_KEY"])
email = client.emails.send(
from: "hello@yourdomain.com",
to: ["user@example.com"],
subject: "Hello",
html: "<p>Sent from Ruby</p>",
type: "transactional"
)
puts email["id"]