parameters: (to_address: str, username: str)
return_statement: return True
docstring: Sends a verification email with a unique token so we can verify user owns this email address
docstring_summary: Sends a verification email with a unique token so we can verify user owns this email address
docstring_tokens: Sends a verification email with a unique token so we can verify user owns this email address
function: def send_verification_email(to_address: str, username: str):
          """ Sends a verification email with a unique token so we can verify user owns this email address """
          # TODO these could be localised if needed, in the future
          verification_url = SMTPService._generate_email_verification_url(
              to_address, username
          )
          values = {
              "USERNAME": username,
              "VERIFICATION_LINK": verification_url,
          }
          html_template = get_template("email_verification_en.html", values)
  
          subject = "Confirm your email address"
          SMTPService._send_message(to_address, subject, html_template)
          return True
function_tokens: def send_verification_email ( to_address : str , username : str ) : # TODO these could be localised if needed, in the future verification_url = SMTPService . _generate_email_verification_url ( to_address , username ) values = { "USERNAME" : username , "VERIFICATION_LINK" : verification_url , } html_template = get_template ( "email_verification_en.html" , values ) subject = "Confirm your email address" SMTPService . _send_message ( to_address , subject , html_template ) return True