rctab.routers.accounting.send_emails¶
Tools for sending email notifications to users.
Functions
|
Check for subscriptions that are overbudget and should trigger an email. |
|
Check for subscriptions that should trigger an email as they near expiry. |
|
Returns the value for the key "subscription_id". |
|
Get new allocations since given datetime. |
|
Get new approvals since given datetime. |
|
Get information about emails sent since a given time. |
|
Get finance info grouped by subscription id. |
|
Returns a list of all the subscriptions created since the provided datetime. |
|
Get the email adresses of users that should be emailed about this subscription. |
|
Get the oldest and newest rows of the subscription details table. |
|
Prepare arguments for sending a role assignment change email, if necessary. |
|
Prepare arguments for sending a status change email, if necessary. |
|
Prepares and returns data needed to send summary email. |
|
Prepare arguments for sending a welcome email for a new_status, if necessary. |
|
Renders html based on the provided template and data. |
|
Send an email to notify users that a subscription is nearing its expiry date. |
|
Sends template-based emails. |
|
Send an email to notify users that subscription is overbudget. |
|
Send emails after a change in subscription status. |
|
Sends an email to those in to_list with subject=subject. |
|
Work out whether we should send an email for this subscription. |
|
Builds a query to get the most recent time-based email for each subscription. |
|
Builds a query to get the most recent warning emails each subscription. |
Classes
|
Compare usage at enter and exit, sending emails as necessary. |
Exceptions
|
Exception for when email settings are missing. |