Python 100 project #39: Email Inbound-SMTP Test

When introducing a new security layer to the email service, sometimes I need to test if those servers are working well without changing anything in production server. It is usually quite difficult as Email services are usually company wide. But if I can specify the smtp server to use(in this case the new security appliance server ip address), it’s possible at least I can see if that server is configured correctly(to receive email).


Output Example:



Here is the code: