Ruby on Rails SDK
The official Render25 ActionMailer delivery method. Plug it into your existing Rails mailers with one line of configuration.
Installation
Gemfile
gem 'render25-rails'Basic Usage
config/environments/production.rb
config.action_mailer.delivery_method = :render25
config.action_mailer.render25_settings = {
api_key: ENV['RENDER25_API_KEY']
}app/mailers/user_mailer.rb
class UserMailer < ApplicationMailer
def welcome_email
@user = params[:user]
mail(to: @user.email, subject: 'Welcome to Render25')
end
end