Quantcast
Channel: PowerShell.com – PowerShell Scripts, Tips, Forums, and Resources
Viewing all articles
Browse latest Browse all 6937

Probmes sending mailmessage

$
0
0

My script is gathering some server data and then sends reports using Send-MailMessage for each server to a specified distribution list. The problem I'm having is that almost every time when the script runs at some point I'm seeing errors saying the smtp server cannot be resolved. I'm not sure how to deal with this situation. Ideally if the script kept trying to send until successful before moving on to the next host. How can this be done?


Viewing all articles
Browse latest Browse all 6937

Trending Articles