Ruby Developer Documentation
Learn how to configure your Ruby SMTP client to use MailSlurp SMTP server and get access details in this documentation page
This page has moved.
Quick links
SMTP setup example
First require the standard smtp library
require 'net/smtp'
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', 'from@me.com', 'to@you.com'
end
Get access to MailSlurp SMTP server
First create a free account and create a mailbox. Then generate SMTP access details that can be used to configure your SMTP client in Ruby.