Python: Confirm Mail Sending Configuration


Here is a code to confirm mail sending configuration in Python.

Environment

  • Python 3.10

Code

Python smtplib standard module helps to communicate with SMTP server and send email easily. The above code sends email via SMTP and we can check SMTP configuration with it.