Using Send-MailMessage in powershell is much simpler then the “old school” telnet cmd line to test mail relays.
I’ve been using this cmdlet for a while now and it’s much easier and quicker, specially since the telnet client feature is not enabled by default since Windows 7 / Server 2008 if I remember correctly.
1 |
Send-MailMessage -SmtpServer "mailrelay.server.com" -From "einar@abovethecloud.is" -To "testingrecipient@domain.com" -Subject "Ehlo World" -Body "Is it me that you are looking for?" |