blob: a7e59f36ad428765e940e90de6043f29be426b58 (
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
26
|
# 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.1 2007-11-05 16:46:10 francis Exp $
class UserMailer < ActionMailer::Base
def confirm_login(user, reasons, url)
@from = MySociety::Config.get("CONTACT_EMAIL")
@recipients = user.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')
|