Commit 0e2475354f93588e087ca5a68254fe86f63c7666

Authored by Rodrigo Souto
Committed by Larissa Reis
1 parent 4d031bf1

spaminator: update mailer to rials4 new scheme

plugins/spaminator/lib/spaminator_plugin/mailer.rb
... ... @@ -2,14 +2,14 @@ class SpaminatorPlugin::Mailer < Noosfero::Plugin::MailerBase
2 2  
3 3 include Rails.application.routes.url_helpers
4 4 def inactive_person_notification(person)
  5 + @person = person
  6 + @environment = person.environment
  7 + @url = url_for(:host => person.default_hostname, :controller => 'account', :action => 'forgot_password')
5 8 mail(
6 9 :to => person.email,
7 10 :from => "#{person.environment.name} <#{person.environment.noreply_email}>",
8 11 :subject => _("[%s] You must reactivate your account.") % person.environment.name,
9 12 :content_type => 'text/html',
10   - :body => {:person => person,
11   - :environment => person.environment,
12   - :url => url_for(:host => person.default_hostname, :controller => 'account', :action => 'forgot_password')}
13 13 )
14 14 end
15 15  
... ...