def METHOD_NAME(
        job: IndicatorPeriodAggregationJob,
        subject_template: str, message_template: str,
        reason: str = None
):
    recipients = get_job_recipients(job)
    rsr_send_mail_to_users(
        [recipient.user for recipient in recipients],
        subject=subject_template,
        message=message_template,
        msg_context={
            "indicator": job.period.indicator,
            "root_project": job.root_project,
            "reason": reason,
            "job": job,
            "max_attempts": MAX_ATTEMPTS,
        }
    )