Sha256: 473526baf097be4f7b49de60910d95bfc63fd346fed3f0627e9a8d532893b93e

Contents?: true

Size: 379 Bytes

Versions: 1

Compression:

Stored size: 379 Bytes

Contents

module MovieStone
  class Mailer
    def initialize
      Mail.defaults do
        delivery_method :smtp, MovieStone.config.mail[:delivery].symbolize_keys
      end
    end

    def deliver(from_addr, to_addr, mail_body, mail_subject)
      Mail.deliver do
        to to_addr
        from from_addr
        subject mail_subject
        body mail_body
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
movie_stone-0.1.0 lib/movie_stone/mailer.rb