parameters: (to, subject, body)
docstring: Sends an email using the SMTP configuration given in the INI file.  The
      sender is always the administrator, also as given in the INI file.
  
      :param to: recipient of the email
      :param subject: subject of the email
      :param body: body text of the email
  
      :type to: str
      :type subject: str
      :type body: str
docstring_summary: Sends an email using the SMTP configuration given in the INI file.  The
      sender is always the administrator, also as given in the INI file.
docstring_tokens: Sends an email using the SMTP configuration given in the INI file . The sender is always the administrator also as given in the INI file .
function: def send_email(to, subject, body):
      """Sends an email using the SMTP configuration given in the INI file.  The
      sender is always the administrator, also as given in the INI file.
  
      :param to: recipient of the email
      :param subject: subject of the email
      :param body: body text of the email
  
      :type to: str
      :type subject: str
      :type body: str
      """
      logging.debug("Send mail with subject “{}”".format(subject))
      message = MIMEText(body)
      message["Subject"] = subject
      message["From"] = admin
      message["To"] = to
      smtp_connection = smtplib.SMTP(config["SMTP"]["machine"], config["SMTP"]["port"])
      if config["SMTP"].get("TLS", "off").lower() in {"on", "true", "yes"}:
          smtp_connection.starttls()
      if "login" in config["SMTP"]:
          smtp_connection.login(config["SMTP"]["login"], config["SMTP"]["password"])
      smtp_connection.sendmail(admin, [to, config["General"]["admin_email"]], message.as_string())
function_tokens: def send_email ( to , subject , body ) : logging . debug ( "Send mail with subject “{}”".for m at(sub j ect)) message = MIMEText ( body ) message [ "Subject" ] = subject message [ "From" ] = admin message [ "To" ] = to smtp_connection = smtplib . SMTP ( config [ "SMTP" ] [ "machine" ] , config [ "SMTP" ] [ "port" ] ) if config [ "SMTP" ] . get ( "TLS" , "off" ) . lower ( ) in { "on" , "true" , "yes" } : smtp_connection . starttls ( ) if "login" in config [ "SMTP" ] : smtp_connection . login ( config [ "SMTP" ] [ "login" ] , config [ "SMTP" ] [ "password" ] ) smtp_connection . sendmail ( admin , [ to , config [ "General" ] [ "admin_email" ] ] , message . as_string ( ) )