def METHOD_NAME(self, outdated_secondaries, output, timeouts):
    if not outdated_secondaries and not timeouts:
        return
    subject = f'{timeouts and "CRITICAL ALERT" or "ALERT"} {len(outdated_secondaries)} secondaries out of sync'
    message = ""
    if timeouts:
        message += f"The following servers had timeouts:\n\n{timeouts}\n\n"
    if outdated_secondaries:
        message += f"The following {len(outdated_secondaries)} secondaries are out of sync:\n"
        for outdated_secondary in outdated_secondaries:
            message += f"* {outdated_secondary}\n"
        message += "\n"
    message += f"Current secondary IPs: {self.servers}\n"
    message += "\n".join(output)
    mail_admins(
        subject,
        message,
        connection=get_connection("django.core.mail.backends.smtp.EmailBackend"),
    )