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
+1
View File
@@ -8,6 +8,7 @@ class SupportersController < ApplicationController
def create
@supporter = Supporter.new supporter_form_params.merge(language: I18n.locale)
if !input_to_fast? && @supporter.save
SupporterMailer.welcome_email(@supporter).deliver_now
redirect_to thanks_path
else
flash.now[:danger] = t '.timeout' if input_to_fast?