Skip to content

Commit

Permalink
DEV-439: notification uses new email
Browse files Browse the repository at this point in the history
  • Loading branch information
aelkiss committed Oct 3, 2022
1 parent 05a2942 commit a6da3ce
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bin/notify.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def email(set_name,recipient,data)
(data.count < 1) and return

message = <<DOC
From: HathiTrust <feedback@issues.hathitrust.org>
From: HathiTrust <support@hathitrust.org>
To: #{recipient}
Subject: Delete notifications for #{set_name} dataset
Expand All @@ -23,7 +23,7 @@ def email(set_name,recipient,data)
Please review the data you have synced from HathiTrust to check whether you have the volumes listed below. If so, delete all copies you retain of these volumes in accordance with our terms of use. Alternatively, you may delete your copy of the dataset and re-sync to the updated dataset.
If you no longer possess HathiTrust datasets, or if you have other questions regarding datasets, then please email feedback@issues.hathitrust.org.
If you no longer possess HathiTrust datasets, or if you have other questions regarding datasets, then please email support@hathitrust.org.
Thank you,
Expand All @@ -38,7 +38,7 @@ def email(set_name,recipient,data)

puts "sending message with #{data.count} deletes to #{recipient}"
Net::SMTP.start(ENV['SMTP_HOST'] || 'localhost') do |smtp|
smtp.send_message message, 'feedback@issues.hathitrust.org', recipient
smtp.send_message message, 'support@hathitrust.org', recipient
end
end

Expand Down

0 comments on commit a6da3ce

Please sign in to comment.