Files
mozo-backend/app/mailers/notifier.rb
T
2015-10-02 17:26:06 +02:00

17 lines
512 B
Ruby

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: "bterkuile+mozo-contact-form@gmail.com", subject: "[CONTACTFORM] new entry"
end
def user_feedback(feedback)
@user_feedback = feedback
I18n.locale = :en
mail to: "bterkuile+mozo-user-feedback@gmail.com", subject: "[MOZO][USER-FEEDBACK] New user feedback"
end
end