aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/user_mailer.rb
blob: 74309a91d86fb3330b373251eb7ede525aef26fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# models/user_mailer.rb:
# Emails relating to user accounts. e.g. Confirming a new account
#
# Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved.
# Email: francis@mysociety.org; WWW: http://www.mysociety.org/
#
# $Id: user_mailer.rb,v 1.5 2008-01-14 12:22:36 francis Exp $

class UserMailer < ApplicationMailer
    def confirm_login(user, reasons, url)
        @from = contact_from_name_and_email
        @recipients = user.name_and_email
        @subject    = reasons[:email_subject]
        @body[:reasons] = reasons
        @body[:name] = user.name
        @body[:url] = url
    end

end

#'reason_web' => _("To view your pledges, we need to check your email address."),
#'reason_email' => _("Then you will be able to view your pledges."),
#'reason_email_subject' => _('View your pledges at PledgeBank.com')