Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

Send-MailMessage Timeout

$
0
0

Not sure if this is the right place or not. I developed a script that sends out notifications to users (about 1,000 each run) during the run my connection with Exchange times out. It appears that the e-mails actually don't get sent out until the script closes instead of open Exchange session, send email, Close Exchange Session.... Rinse and repeat until all emails are sent.

Everything I've been reading is that this is way Send-MailMessage works? Is this true? Is there a way to send the e-mail as soon as I issue the Send-MailMessage cmdlet rather than opening the Exchange session and hold it open until the script completes?


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>