Add contact form notification
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user