Class: DispatchMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
lib/forge/app/mailers/dispatch_mailer.rb

Instance Method Summary collapse

Instance Method Details

#dispatch(dispatch, email, name, subscriber_id) ⇒ Object



5
6
7
8
# File 'lib/forge/app/mailers/dispatch_mailer.rb', line 5

def dispatch(dispatch, email, name, subscriber_id)
  @name, @dispatch, @email, @subscriber_id = name, dispatch, email, subscriber_id
  mail(:to => email, :subject => dispatch.subject)
end