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.
Examples of sending email in Ruby
First require the standard smtp library
Configure the ruby service to use the MailSlurp SMTP server:
Net::SMTP.start('mx.mailslurp.com', 2525, 'greeting.your.domain') do |smtp| smtp.send_message 'Hello', 'firstname.lastname@example.org', 'email@example.com' end