Test SMTP server on Windows using PowerShell

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

Send-MailMessage -SMTPServer localhost -To [email protected] -From [email protected] -Subject "Test" -Body "Test"

Leave a Reply

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