Using proper mailing for the future

This commit is contained in:
2017-03-25 18:21:58 +01:00
parent 9549c5f791
commit 995fd10a5d
12 changed files with 99 additions and 18 deletions
+2
View File
@@ -1,4 +1,6 @@
class SupporterMailer < ApplicationMailer
include Roadie::Rails::Automatic
def welcome_email(supporter)
@supporter = supporter
mail(to: @supporter.email, subject: I18n.t('welcome_email.subject'))