JiscSD / archivematica

Free and open-source digital preservation system designed to maintain standards-based, long-term access to collections of digital objects.
http://www.archivematica.org
GNU Affero General Public License v3.0
0 stars 0 forks source link

MCPClient: Send an email after aip's are stored #62

Closed philgray-ark closed 6 years ago

philgray-ark commented 6 years ago

Working on https://jiscdev.atlassian.net/browse/RDSSARK-103

This is a work-in-progress for a temporary fix to notifying users of job state. In the long run notifications should be sent on the JISC message queue.

This adds functionality to the post-store-aip-hook to send emails to all registered users. It also removes the ability to store to dspace as this is not needed for RDSS.

Test users to send email to can be added to configuration. Some advice is needed here on how this can come from environment variables.

sevein commented 6 years ago

Test users to send email to can be added to configuration. Some advice is needed here on how this can come from environment variables.

In your development environment, you could change the email backend to: https://docs.djangoproject.com/en/1.8/topics/email/#console-backend. It's good for testing regardless the value in the recipient list because the emails are sent to the standard stream. Would that remove the need for that new test_email setting that you're adding?