scripting

Sending SMTP Mail from Windows Using PowerShell

When working from the Windows command line, you can do a quick test to validate your SMTP connectivity using PowerShell:   c:\> Powershell -executionpolicy bypass PS c:\> Send-MailMessage –to <TO> –from <FROM> –subject “testing123” –body “this is a test” –smtpserver <SMTPServer> -port 25 And if the mail server is accessed over TLS/SSL with SMTP authentication Sending SMTP Mail from Windows Using PowerShell