Sha256: f894a7a19536d0f72c59969aa23df3dd83eb7e8b9fbd046196a446f56719292e

Contents?: true

Size: 528 Bytes

Versions: 13

Compression:

Stored size: 528 Bytes

Contents

# frozen_string_literal: true
module ThinkFeelDoEngine
  # Sends a new lesson notification to a given participant.
  class LessonNotificationMailer < ActionMailer::Base
    default(
      from: Rails.configuration.action_mailer.default_options[:from]
    )

    def lesson_notification_email(
      application_name:, lesson_module:, participant_email:
    )
      @application_name = application_name
      @lesson = lesson_module
      mail(to: participant_email,
           subject: "New Lesson Available")
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
think_feel_do_engine-3.22.9 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb
think_feel_do_engine-3.22.8 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb
think_feel_do_engine-3.22.7 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb
think_feel_do_engine-3.22.6 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb
think_feel_do_engine-3.22.5 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb
think_feel_do_engine-3.22.4 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb
think_feel_do_engine-3.22.2 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb
think_feel_do_engine-3.22.1 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb
think_feel_do_engine-3.22.0 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb
think_feel_do_engine-3.21.2 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb
think_feel_do_engine-3.21.1 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb
think_feel_do_engine-3.21.0 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb
think_feel_do_engine-3.20.1 app/mailers/think_feel_do_engine/lesson_notification_mailer.rb