Class: UserMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/models/user_mailer.rb

Instance Method Summary collapse

Instance Method Details

#newsupdate(user, article) ⇒ Object

TODO the from email has to me moved to a configuration file



5
6
7
8
9
10
11
# File 'app/models/user_mailer.rb', line 5

def newsupdate(user, article)
  recipients   user.email
  from         '[email protected]'
  subject      I18n.t(:usermailer_newsupdate_subject)
  content_type 'text/html'
  @article =  article
end