Search This Blog

Friday 20 February 2015

Test and Troubleshoot mail with PowerShell

Hi,

The old way was with Telnet
http://daniecsp.blogspot.com/2013/06/sending-test-mail-with-telnet.html

Bit easyer with PowerShell:

Send-Mailmessage -To Destination@domain.com -From Source@domain.com -Subject testing -Body testing -SmtpServer OURSERVER

One thing I'm not sure yet is how the error reporting works but usually PowerShell is pretty good.