This one is going to be short and sweet, I've been testing SMTP with and without encryption and wanted a good script for that. 

Here are the lines that you'll want to look at configuring: 

http://thetechl33t.com/2015/06/11/powershell-script-to-test-smtp/