def METHOD_NAME(users, template, context={}):
    if not 'site' in context:
        context['site'] = Site.objects.get_current()
    context['site_url'] = get_setting('site', 'global', 'siteurl'),
    old_lang = translation.get_language()
    from_email = settings.DEFAULT_FROM_EMAIL
    subject = render_to_string('pybb/mail_templates/%s_subject.html' % template, context)
    # Email subject *must not* contain newlines
    subject = ''.join(subject.splitlines())
    mails = tuple()
    for user in users:
        if Email.is_blocked(user.email):
            continue
        try:
            validate_email(user.email)
        except:
            # Invalid email
            continue
        if user.email == '%s@example.com' % getattr(user, compat.get_username_field()):
            continue
        lang = util.get_pybb_profile(user).language or settings.LANGUAGE_CODE
        translation.activate(lang)
        context['user'] = user
        message = render_to_string('pybb/mail_templates/%s_body.html' % template, context)
        mails += ((subject, message, from_email, [user.email]),)
    # Send mails
    send_mass_mail(mails, fail_silently=True)
    # Reactivate previous language
    translation.activate(old_lang)