SDKs
Ruby
Coming soonSend email from Ruby and Rails applications.
Source codegithub.com/mail-craft/mailcraft-ruby
PackageNot on RubyGems yet
The Ruby SDK isn't released yet — this page shows its planned API. You can send from Ruby today by calling the REST API directly.
Install
terminal
gem install mailcraftSend email
Send from a verified sender on one of your domains.
main.rb
require 'mailcraft'
mailcraft = MailCraft::Client.new(api_key: ENV['MAILCRAFT_API_KEY'])
mailcraft.emails.send(
from: '[email protected]',
to: ['[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.