I am trying to send an email from PowerShell runbook.
The script I use is:
<code>Send-mailmessage -from "[email protected]" -to "[email protected]" -subject "test" -smtpserver "smtp_server"
</code>
<code>Send-mailmessage -from "[email protected]" -to "[email protected]" -subject "test" -smtpserver "smtp_server"
</code>
Send-mailmessage -from "[email protected]" -to "[email protected]" -subject "test" -smtpserver "smtp_server"
It fails with an error message:
<code>A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
</code>
<code>A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
</code>
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.