app/mailers/rd_mailer.rb
# send an email to the RDM team to tell them that someone has requested data
send an email to the RDM team to tell them that someone has requested data
send an email to the RDM team to tell them that someone has requested data
def notify_rdm_team_about_request(dataset_id, requester_email)
    @dataset = Dlibhydra::Dataset.find(dataset_id)
    @requester_email = requester_email
    to = ENV['RDM_EMAIL']
    mail(to: to, subject: "Data requested for dataset " + @dataset.id) unless to.nil? or to.empty?
  end
def notify_rdm_team_about_request ( dataset_id , requester_email ) @dataset = Dlibhydra :: Dataset . find ( dataset_id ) @requester_email = requester_email to = ENV [ 'RDM_EMAIL' ] mail ( to : to , subject : "Data requested for dataset " + @dataset . id ) unless to . nil? or to . empty? end
send an email to the RDM team to tell them that someone has requested data
send an email to the RDM team to tell them that someone has requested data
# get the dataset # get the email address(es) # get the RDM team email address # send email
dataset_id
<not_specific>
requester_email
<not_specific>