Sha256: 5285ac56947b828b2224026368d51f211cc481398b495a72d445b4bc4f8fc1ba
Contents?: true
Size: 441 Bytes
Versions: 8
Compression:
Stored size: 441 Bytes
Contents
ActionMailer::Base.delivery_method = :test class Mailer < ActionMailer::Base def test(options={}) mail({:from => 'from@seatbelt.co.nz', :to => 'test@seatbelt.co.nz', :cc => 'cc@seatbelt.co.nz', :bcc => 'bcc@seatbelt.co.nz', :subject => 'mail subject'}.merge(options)) do |format| format.text { render :text => options[:body] || 'mail body text' } end end end
Version data entries
8 entries across 8 versions & 1 rubygems