Testing SMTP Relay with PowerShell

by | Aug 29, 2024 | IT Tips | 0 comments

When setting up an SMTP relay on Windows this Powershell command can help

1
2
3
4
5
6
7
Send-MailMessage -SmtpServer 10.77.23.20 -Port 25 `
-From example@toggen.com.au `
-To testuser@example.com,testuser2@example.com.au `
-Subject "Remittance Advice Test# 5" `
-Body "Test at 9:08 AM 29/08/2024"
 
# this is a multi-line command powershell uses the back tick (e.g. ` )  to for that

0 Comments

Submit a Comment

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

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

The reCAPTCHA verification period has expired. Please reload the page.