require "study_engine/config" module StudyEngine class Mailer < ActionMailer::Base helper MailerHelpers default content_type: "text/html" def assessment_url_notification email, assessment @assessment = assessment subject = "URL for #{assessment.study_id} #{assessment.event}" mail to: email, subject: subject, content_type: "text/plain" end def assessment_recorded_notification email, assessment @study_name = StudyEngine.study_name @assessment = assessment subject = "#{assessment.study_id} #{assessment.event} recorded" mail to: email, subject: subject, content_type: "text/plain", cc: StudyEngine.notification_email end end end