Commit 0e2475354f93588e087ca5a68254fe86f63c7666
Committed by
Larissa Reis
1 parent
4d031bf1
Exists in
staging
and in
15 other branches
spaminator: update mailer to rials4 new scheme
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
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 | ... | ... |