code: def send_invite_email(application, link, is_secret):
      
  
      if not application.applicant.email:
          return
  
      context = CONTEXT.copy()
      context['receiver'] = application.applicant
      context['application'] = application
      context['link'] = link
      context['is_secret'] = is_secret
  
      to_email = application.applicant.email
      subject, body = render_email('common_invite', context)
  
      send_mail(subject, body, settings.ACCOUNTS_EMAIL, [to_email])
docs: Sends an email inviting someone to create an account