def mixnet_send_url(request, election, mixnet_index):
mixnet = election.mixnets.filter()[int(mixnet_index)]
url = mixnet.admin_url()
body = """
You are a mixnet for %s.
Your mixnet dashboard is at
%s
--
Helios
""" % (election.name, url)
helios_utils.send_email(settings.SERVER_EMAIL, ["%s <%s>" % (mixnet.name, mixnet.email)], 'your mixnet homepage for %s' % election.name, body)
logging.info("URL %s " % url)
return HttpResponseRedirect(settings.SECURE_URL_HOST + reverse(list_mixnets_view, args = [election.uuid]))
评论列表
文章目录