def METHOD_NAME(allocation_obj, subject, template_name, url_path='', domain_url=''):
    """Send allocation customer emails
    """
    if not url_path:
        url_path = reverse('allocation-detail', kwargs={'pk': allocation_obj.pk})
    url = build_link(url_path, domain_url=domain_url)
    ctx = email_template_context()
    ctx['resource'] = allocation_obj.get_parent_resource
    ctx['url'] = url
    allocation_users = allocation_obj.allocationuser_set.exclude(status__name__in=['Removed', 'Error'])
    email_receiver_list = []
    for allocation_user in allocation_users:
        if allocation_user.allocation.project.projectuser_set.get(
                                user=allocation_user.user).enable_notifications:
            email_receiver_list.append(allocation_user.user.email)
    send_email_template(
        subject,
        template_name,
        ctx,
        EMAIL_SENDER,
        email_receiver_list
    )