i've been trying to build a small powershell script, to inform employees via email if their windows OS is not up to date, i was planning to use our own email relay to send those emails, so i wanted to use this script to test sending out the email
Send-MailMessage -SmtpServer '<ip of email relay>' -To '<employee email>' -From '<central email>' -Subject 'test' -Body 'this is a test' -Port 25
now when i run this script powershell says the script has been executed, no errors, but the email is never sent/received. Is there anything i'm missing here ?