Test sending e-mails from mailserver using PowerShell

I’ve been using Telnet for a while now to test sending emails from a SMTP relay server. But if you are using a Windows server/client, the easier way is to use Powershell, as Telnet is unforgiving for syntax errors. If you are directly logged in to the SMTP server, you can use this PowerShell code: …