Ruby Developer Documentation

Ruby Developer Documentation

This page has moved.

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.