Class: ThinkFeelDoEngine::LessonNotificationMailer

Inherits:
ActionMailer::Base
  • Object
show all
Defined in:
app/mailers/think_feel_do_engine/lesson_notification_mailer.rb

Overview

Sends a new lesson notification to a given participant.

Instance Method Summary collapse

Instance Method Details

#lesson_notification_email(application_name:, lesson_module:, participant_email:) ⇒ Object



9
10
11
12
13
14
15
16
# File 'app/mailers/think_feel_do_engine/lesson_notification_mailer.rb', line 9

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