diff options
Diffstat (limited to 'app/models/user_mailer.rb')
-rw-r--r-- | app/models/user_mailer.rb | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/app/models/user_mailer.rb b/app/models/user_mailer.rb new file mode 100644 index 000000000..a7e59f36a --- /dev/null +++ b/app/models/user_mailer.rb @@ -0,0 +1,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') + + |