This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import smtplib | |
# initialize connection to our email server, we will use Outlook here | |
smtp = smtplib.SMTP('smtp-mail.outlook.com', port='587') | |
smtp.ehlo() # send the extended hello to our server | |
smtp.starttls() # tell server we want to communicate with TLS encryption | |
smtp.login('[email protected]', 'Password123') # login to our email server |