Sha256: e1162babc4c459fcae529d2532423dd54ec39d32561c94ab6d0522cd7f4fd09d

Contents?: true

Size: 600 Bytes

Versions: 1

Compression:

Stored size: 600 Bytes

Contents

# frozen_string_literal: true

class Notifications < ActionMailer::Base
  default from: Settings.mailer_from

  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

  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
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
translation_cms-0.1.5 app/mailers/notifications.rb