app/mailers/rd_mailer.rb
# send an email to the RDM team when someone has deposited data
send an email to the RDM team when someone has deposited data
send an email to the RDM team when someone has deposited data
def notify_rdm_team_about_dataset(dataset_id, info, summary, user = nil)
    @dataset = Dlibhydra::Dataset.find(dataset_id)
    @info = info
    @user = user
    to = ENV['RDM_EMAIL']
    mail(to: to, subject: "Update on dataset " + @dataset.id + ": " + summary) unless to.nil? or to.empty?
  end
def notify_rdm_team_about_dataset ( dataset_id , info , summary , user = nil ) @dataset = Dlibhydra :: Dataset . find ( dataset_id ) @info = info @user = user to = ENV [ 'RDM_EMAIL' ] mail ( to : to , subject : "Update on dataset " + @dataset . id + ": " + summary ) unless to . nil? or to . empty? end
send an email to the RDM team when someone has deposited data
send an email to the RDM team when someone has deposited data
dataset_id
<not_specific>
info
<not_specific>
summary
<not_specific>
user
<not_specific>