def email_invite(from_actor_ref, invite_code):
  SITE_NAME = util.get_metadata('SITE_NAME')
  POST_NAME = util.get_metadata('POST_NAME')
  SITE_DESCRIPTION = util.get_metadata('SITE_DESCRIPTION')
  DOMAIN = settings.DOMAIN
  full_name = _full_name(from_actor_ref)
  nick_name = from_actor_ref.display_nick()
  accept_url = 'http://%s/invite/email/%s' % (settings.DOMAIN, invite_code)
  accept_mobile_url = 'http://m.%s/invite/email/%s' % (settings.DOMAIN,
                                                       invite_code)

  t = loader.get_template('common/templates/email/email_invite.txt')
  c = template.Context(locals(), autoescape=False)
  message = t.render(c)
  c.autoescape = True
  html_template = loader.get_template(
      'common/templates/email/email_invite.html')
  html_message = html_template.render(c)
  subject = '%s welcomes you for a collaborative buzz@innoGems!' % full_name
  return (subject, message, html_message)
dataset/ETHPy150Open CollabQ/CollabQ/common/mail.py/email_invite/original