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,14 +2,14 @@ class SpaminatorPlugin::Mailer < Noosfero::Plugin::MailerBase
2 2
3 include Rails.application.routes.url_helpers 3 include Rails.application.routes.url_helpers
4 def inactive_person_notification(person) 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 mail( 8 mail(
6 :to => person.email, 9 :to => person.email,
7 :from => "#{person.environment.name} <#{person.environment.noreply_email}>", 10 :from => "#{person.environment.name} <#{person.environment.noreply_email}>",
8 :subject => _("[%s] You must reactivate your account.") % person.environment.name, 11 :subject => _("[%s] You must reactivate your account.") % person.environment.name,
9 :content_type => 'text/html', 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 end 14 end
15 15