+ def signup_confirm(user, token)
+ recipients user.email
+ from "webmaster@openstreetmap.org"
+ subject "[OpenStreetMap] Confirm your email address"
+ headers "Auto-Submitted" => "auto-generated"
+ body :url => url_for(:host => SERVER_URL,
+ :controller => "user", :action => "confirm",
+ :confirm_string => token.token)
+ end
+
+ def email_confirm(user, token)
+ recipients user.new_email
+ from "webmaster@openstreetmap.org"
+ subject "[OpenStreetMap] Confirm your email address"
+ headers "Auto-Submitted" => "auto-generated"
+ body :address => user.new_email,
+ :url => url_for(:host => SERVER_URL,
+ :controller => "user", :action => "confirm_email",
+ :confirm_string => token.token)
+ end
+
+ def lost_password(user, token)
+ recipients user.email
+ from "webmaster@openstreetmap.org"
+ subject "[OpenStreetMap] Password reset request"
+ headers "Auto-Submitted" => "auto-generated"
+ body :url => url_for(:host => SERVER_URL,
+ :controller => "user", :action => "reset_password",
+ :email => user.email, :token => token.token)
+ end
+
+ def reset_password(user, pass)
+ recipients user.email
+ from "webmaster@openstreetmap.org"
+ subject "[OpenStreetMap] Password reset"
+ headers "Auto-Submitted" => "auto-generated"
+ body :pass => pass
+ end
+
+ def gpx_success(trace, possible_points)
+ recipients trace.user.email if trace.user.email_valid
+ from "webmaster@openstreetmap.org"
+ subject "[OpenStreetMap] GPX Import success"
+ headers "Auto-Submitted" => "auto-generated"
+ body :trace_name => trace.name,
+ :trace_points => trace.size,
+ :trace_description => trace.description,
+ :trace_tags => trace.tags,
+ :possible_points => possible_points
+ end