Test SMTP server on Windows using PowerShell

Quick test to find out whether you setup the SMTP server correctly.

Send-MailMessage -SMTPServer localhost -To example@example.com -From example@example.com -Subject "Test" -Body "Test"

Leave a Reply

Your email address will not be published. Required fields are marked *