Using PowerShell to simplify the SMTP test in an Exchange Server or any other SMTP server.
I’ve been using telnet for a while (since Exchange 5.5 to be honest) however PowerShell has a Send-MailMessage cmdlet which makes the entire process much simpler than using telnet.
We just need to add the SMTP Server which we are going to test (-SMTPServer), the recipient (-to), the sender (-From), subject of the message (-Subject) and the body on the message (-Body).
The test is simple, just check the Inbox on the user that we defined the in the –to switch.
By running this cmdlet, the administrator saves a lot of time on the telnet client, and the cmdlet can be used even on Windows 10 client machines.