smtplib — SMTP protocol client — Python 3.10.1 documentation
docs.python.org › 3 › libraryJan 06, 2022 · SMTP.connect (host = 'localhost', port = 0) ¶ Connect to a host on a given port. The defaults are to connect to the local host at the standard SMTP port (25). If the hostname ends with a colon (':') followed by a number, that suffix will be stripped off and the number interpreted as the port number to use. This method is automatically invoked ...