Sha256: 97849a3ba27d15663ce701eccf72d212ff376c729b8e44bb442de0f0640d6d3a

Contents?: true

Size: 543 Bytes

Versions: 104

Compression:

Stored size: 543 Bytes

Contents

module Comee
  module Core
    class NotificationMailer < ApplicationMailer
      def notify
        user = params[:user]
        files = params[:files]
        files&.each { |k, v| attachments[k] = v }

        mail(
          from: email_address_with_name(user.email, user.name),
          to: params[:recipients],
          subject: params[:subject],
          delivery_method_options: user.delivery_options
        ) do |format|
          format.html { render(html: params[:email_body].html_safe) }
        end
      end
    end
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
comee_core-0.3.62 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.61 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.60 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.59 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.58 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.57 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.56 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.55 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.54 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.53 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.51 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.50 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.49 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.48 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.47 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.46 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.45 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.44 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.43 app/mailers/comee/core/notification_mailer.rb
comee_core-0.3.42 app/mailers/comee/core/notification_mailer.rb