'Sends one-use only links for resetting password to target users'

def send(self, users, subject_template_name='', email_template_name='', use_https=True, token_generator=default_token_generator, from_email=None, html_email_template_name=None):

    for user_profile in users:
        context = {'email': user_profile.email, 'domain': user_profile.realm.host, 'site_name': 'zulipo', 'uid': urlsafe_base64_encode(force_bytes(user_profile.pk)), 'user': user_profile, 'token': token_generator.make_token(user_profile), 'protocol': ('https' if use_https else 'http')}
        logging.warning(('Sending    %s    email    to    %s' % (email_template_name, user_profile.email)))
        send_email('zerver/emails/password_reset', to_user_id=user_profile.id, from_name='Zulip    Account    Security', from_address=FromAddress.NOREPLY, context=context)
