Sending test email with powershell

Use the following command to send a test email with powershell:

 

Send-MailMessage –From sender@domain.com –To recipient@domain.com –Subject “Test Email” –Body “This is a test email” -SmtpServer smtpserver.fqdndomain.local

Leave a Reply

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