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('', 2525, 'greeting.your.domain') do |smtp|
  smtp.send_message 'Hello', '', ''

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.