added mailer

This commit is contained in:
2016-04-08 15:22:31 +02:00
parent 7aacbe8d56
commit 8103f7b439
11 changed files with 71 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
class ApplicationMailer < ActionMailer::Base
default from: 'markus@hanflegal.ch'
layout 'mailer'
end
+6
View File
@@ -0,0 +1,6 @@
class SupporterMailer < ApplicationMailer
def welcome_email(supporter)
@supporter = supporter
mail(to: @supporter.email, subject: I18n.t('welcome_email.subject'))
end
end