Class: Notifications
- Inherits:
-
ActionMailer::Base
- Object
- ActionMailer::Base
- Notifications
- Defined in:
- app/mailers/notifications.rb
Instance Method Summary collapse
Instance Method Details
#new_feedback(feedback) ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'app/mailers/notifications.rb', line 15 def new_feedback(feedback) @feedback = feedback mail(subject: 'Writers CMS: New feedback', to: Settings.mailer_to, reply_to: @feedback.email, content_type: 'text/plain') end |
#new_testimonial(testimonial) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/mailers/notifications.rb', line 6 def new_testimonial(testimonial) @testimonial = testimonial # @satellite = TranslationCms::Api::Satellite.find(Settings.satellite_id) mail(subject: 'Writers CMS: New testimonial', to: Settings.mailer_to, content_type: 'text/plain') end |