The Send-MailMessage command is great for what it is, but if I wanted to send hundreds (or thousands) of messages over SMTP, that would require hundreds\thousands of separate SMTP sessions.
Is there a way in PowerShell to submit multiple messages over SMTP with a single SMTP connection?
For example, I have 100 emails to send. Each email is unique (different set of recipients,sender, subject, and body). This isn't a case where I want to send a single email to multiple recipients. I'm looking to send SMTP mail over a single connection to the SMTP server and not open 100 separate SMTP connections to send my 100 e-mails.