added upgrade mailer

This commit is contained in:
albert
2011-12-02 16:46:37 -05:00
parent caf39d1962
commit 4baf5be7a2
7 changed files with 28 additions and 4 deletions

View File

@@ -0,0 +1,16 @@
class UserMailer < ActionMailer::Base
default :host => Danbooru.config.server_host, :from => Danbooru.config.contact_email, :content_type => "text/html"
def dmail_notice(dmail)
@dmail = dmail
mail(:to => dmail.to.email, :subject => "#{Danbooru.config.app_name} - Message received from #{dmail.from.name}")
end
def upgrade(user, email)
mail(:to => email, :subject => "#{Danbooru.config.app_name} account upgrade")
end
def upgrade_fail(email)
mail(:to => email, :subject => "#{Danbooru.config.app_name} account upgrade")
end
end