The below script is a simple method to test if port 25 is open on a server. The script will attempt to connect to the server and send a quick email with a small attachment that it creates on the fly.
I don’t claim to be the worlds best programmer, in fact I am far from it, but I do share something that all great programmers have. The love of simple code that is clean, and just works.
Recently I was working on a PowerShell project where I was trying to create a simple application that would ask the user for input, and then run an .exe int eh background with the passed data. The idea was to simply the program that we used to administer our Google Apps domain, called GAM.