Powershell send-mailmessage - email to multiple recipients

前端 未结 7 2088
小蘑菇
小蘑菇 2020-11-29 07:10

I have this powershell script to sending emails with attachments, but when I add multiple recipients, only the first one gets the message. I\'ve read the documentation and s

7条回答
  •  悲&欢浪女
    2020-11-29 07:42

    That's right, each address needs to be quoted. If you have multiple addresses listed on the command line, the Send-MailMessage likes it if you specify both the human friendly and the email address parts.

提交回复
热议问题