Skip to main content

Module seed_generic_emails

Module seed_generic_emails 

Source

Functions§

seed_account_linking_templates 🔒
The mail that carries a student-number linking link. Every placeholder comes from the delivery row because the recipient may have no account here, and the “you received this because” line has to stay because the message is unsolicited. A migration cannot insert a row using an enum value it adds itself, so in dev and tests these templates come only from here.
seed_email_ownership_verification_templates 🔒
The sender looks the account’s pending code up at send time and substitutes {{CODE}}, as it does for the login and account deletion codes.
seed_generic_emails
seed_student_notification_templates 🔒
The two terminal-state mails a student may get about a credit registration, and the only two that exist.
seed_student_number_linked_templates 🔒
Told to a student whose student number we linked from a matching verified email address, without them clicking anything. A compensating control for that automatic link: it is how someone finds out a number was attached to their account and can detach it.