def METHOD_NAME(organisation: Organisation, validator_result: IATIValidationResult):
    if validator_result.error_count == 0 and validator_result.warning_count == 0:
        return
    email_recipients = getattr(settings, 'IATI_ORGANISATION_VALIDATION_ERROR_RECIPIENTS', [])
    if not email_recipients:
        message = f'IATI validation error for organisation: {organisation.name}\n'\
            f'errors: {validator_result.error_count}\n'\
            f'warnings: {validator_result.warning_count}'
        logger.info(message)
        return
    attachments = [{
        'filename': 'iati-validator-api-result.json',
        'content': json.dumps(validator_result.data, indent=2),
        'mimetype': 'application/json'
    }]
    rsr_send_mail(
        email_recipients,
        subject='iati_validation/organisation_error_subject.txt',
        message='iati_validation/organisation_error_message.txt',
        msg_context={'organisation': organisation, 'result': validator_result},
        attachments=attachments
    )