recordtransfer.emails - Email Notifications
Each function in the emails.py file is a django_rq.job, meaning that these functions are
meant to run asynchronously with a Redis server.
Email notifications sent by recordtransfer application.
- recordtransfer.emails.send_submission_creation_success(form_data: dict, submission: Submission)
Send an email to users who get submission email updates that a user submitted a new submission and there were no errors.
- Parameters:
form_data (dict) – A dictionary of the cleaned form data from the submission form. This is NOT the CAAIS tree version of the form.
submission (Submission) – The new submission that was created.
- recordtransfer.emails.send_submission_creation_failure(form_data: dict, user_submitted: User)
Send an email to users who get submission email updates that a user submitted a new submission and there WERE errors.
- Parameters:
form_data (dict) – A dictionary of the cleaned form data from the submission form. This is NOT the CAAIS tree version of the form.
user_submitted (User) – The user that tried to create the submission.
- recordtransfer.emails.send_thank_you_for_your_submission(form_data: dict, submission: Submission)
Send a submission success email to the user who made the submission.
- Parameters:
form_data (dict) – A dictionary of the cleaned form data from the submission form. This is NOT the CAAIS tree version of the form.
submission (Submission) – The new submission that was created.
- recordtransfer.emails.send_your_submission_did_not_go_through(form_data: dict, user_submitted: User)
Send a submission failure email to the user who made the submission.
- Parameters:
form_data (dict) – A dictionary of the cleaned form data from the submission form. This is NOT the CAAIS tree version of the form.
user_submitted (User) – The user that tried to create the submission.