Hi @Glenn Maxwell ,
what does "I am unable to" mean? Any error messages?
You can try this please:
$From = "test@mydomain.com"
$To = "user1@mydomain.com"
$SMTPServer = "192.168.1.10"
$Body = "This is a test email."
for ($i = 1; $i -le 10; $i++) {
$Subject = (Get-Date).ToString("yyyy-MM-dd HH:mm:ss.fff")
Send-MailMessage -From $From -To $To -Subject $Subject -Body $Body -SmtpServer $SMTPServer -Port 25
Write-Output "Email $i sent."
}
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten