aerogel-mailer

Mail sending for aerogel applications


License
MIT
Install
gem install aerogel-mailer -v 1.1.0

Documentation

aerogel-mailer

A mail delivery module for aerogel applications.

Usage

# config.ru
require 'aerogel/core'
require 'aerogel/mailer'

run Aerogel::Application.load
# app/mailers/my-test-mailer.rb
# define mailer:
class Aerogel::Application
    mailer :test do |f, t|
      from f
      to t
      subject 'test'
      body 'hello'
    end
end
# app/routes/my-test-route.rb
# send mail from route handler:
class Aerogel::Application
    get "/test-mail" do
        email :test, 'from@domain.org', 'to@another.org'
    end
end