sanger/sequencescape

View on GitHub
app/mailers/user_query_mailer.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
# Used when the user follows the 'Help' button
class UserQueryMailer < ActionMailer::Base
  def request_for_help(user_query)
    @user_query = user_query
    @from = user_query.from
    @to = user_query.to
    @subject = 'Request for help'
    @date = user_query.date
    mail(from: @from, to: @to, subject: @subject, sent_on: @date)
  end
end