Sha256: 68b23c7faebcf5bcfdc68e1a8de78662dc22d0e0c4bea63f5d0288da3c8ea968

Contents?: true

Size: 404 Bytes

Versions: 24

Compression:

Stored size: 404 Bytes

Contents

class DispatchMailer < ActionMailer::Base
  default :from => MySettings.newsletter_email
  default_url_options[:host] = MySettings.site_url ? MySettings.site_url.gsub('http://', '') : 'localhost:3000'
  
  def dispatch(dispatch, email, name, subscriber_id)
    @name, @dispatch, @email, @subscriber_id = name, dispatch, email, subscriber_id
    mail(:to => email, :subject => dispatch.subject)
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.1.9 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.1.8 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.1.7 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.1.6 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.1.5 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.1.4 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.1.3 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.1.2 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.1.1 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.1.0 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.0.18 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.0.17 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.0.16 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.0.15 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.0.14 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.0.13 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.0.12 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.0.11 lib/forge/app/mailers/dispatch_mailer.rb
forge-cli-0.0.10 lib/forge/app/mailers/dispatch_mailer.rb