Skip to main content

Module student_notifications

Module student_notifications 

Source
Expand description

The student-notifications phase: the only thing that queues a student mail about a credit registration.

Exactly two mails exist and each row gets each at most once. Nothing else is mailed: a failed_permanent row is a configuration problem the student cannot act on, a withdrawn one was the student’s own decision, and the linking mail already covers a missing student number.

Functions§

format_credits 🔒
credits as the mail’s language writes a number: at most two decimals, none when whole, and a decimal comma in Finnish and Swedish.
placeholders 🔒
Stored on the delivery row, so the sender needs no lookup of its own.
run 🔒
base_url is the absolute base for the mail’s links, which outlive the process that wrote them.
status_page_url 🔒
The page the mail sends the student to, which is where every next step already lives.