]> git.openstreetmap.org Git - rails.git/blob - app/models/notifier.rb
fcc039b1f6dbc058ddcc0468eea04d040724e6db
[rails.git] / app / models / notifier.rb
1 class Notifier < ActionMailer::Base
2
3   def signup_confirm( user )
4     @recipients = user.email
5     @from = 'abuse@openstreetmap.org'
6     @subject = '[OpenStreetMap] Confirm your email address'
7     @body['url'] = 'http://www.openstreetmap.org/user/confirm?confirm_string=' + user.token
8   end
9
10   def lost_password( user )
11     @recipients = user.email
12     @from = 'abuse@openstreetmap.org'
13     @subject = '[OpenStreetMap] Passwors reset request'
14     @body['url'] = "http://www.openstreetmap.org/user/reset_password?email=#{user.email}&token=#{user.token}"
15   end
16
17 end