Emailing with Powershell

While working on another script, I had to address the requirement of emailing the results via Outlook. I had two solutions (syntax methods) to accomplish this but I found one more effective than the other and I’ll highlight that here.

This method works by creating an object within the Outlook application, although this still works, it will give you a prompt within Outlook that a program is trying to send an email. You have to wait for a progress bar to complete before clicking allow or deny for the email to go through. This takes away from the automated approach for a script.

This method works without any intervention as it does not attempt to create an Outlook object item.

 

Leave a Reply

Be the First to Comment!

avatar
  Subscribe  
Notify of