Ruby Mailer SDK - send and receive emails in Rails, Rspec and more using MailSlurp’s official email Gem.

Create email accounts in code and tests, send and receive emails and attachments in Ruby and Rails. Simple and powerful email APIs with examples and integrations for many frameworks. Test your applications using real emails with Cucumber and Rspec.

Code samples

Example
Language
inbox_controller = MailSlurpClient::InboxControllerApi.new
inbox = inbox_controller.create_inbox

expect(inbox.id).not_to be_nil
expect(inbox.email_address).to include("mailslurp.com")

Get started