Learning Python Network Programming by Unknown

Learning Python Network Programming by Unknown
Author: Unknown
Language: eng
Format: mobi, pdf
Publisher: Packt Publishing

The preceding code is similar to our first example, except for the authentication to the server. In this case, the SMTP user is authenticated against the server. If we run the script after turning on the SMTP debugging, then we would be seeing an output similar to the following:

$ python3 smtp_mail_sender_tls.py Enter sender email address: [email protected] Enter recipeint email address: [email protected] Enter your email subject: Test email Enter your email message. Press Enter when finished. This is a test email that can be ignored.