Add contact form notification

This commit is contained in:
2015-02-26 05:22:36 +01:00
parent 4283f0313b
commit 9e9a732384
5 changed files with 53 additions and 0 deletions
+10
View File
@@ -0,0 +1,10 @@
class Notifier < ActionMailer::Base
default from: "Qwaiter <service@mozo.bar>"
layout 'mail'
def contact_form(contact_form_id)
@contact_form = Cmtool::ContactForm.find(contact_form_id)
I18n.locale = :en
mail to: "contact-form@mozo.bar", subject: "[CONTACTFORM] new entry"
end
end