How to send email with PowerShell

后端 未结 4 1949
南笙
南笙 2020-12-30 03:48

I\'d like to send email from PowerShell, so I use this command:

$EmailFrom = \"customer@yahoo.com\"
$EmailTo = \"receiver@ymail.com\"  
$Subject = \"today da         


        
4条回答
  •  时光取名叫无心
    2020-12-30 04:10

    Sometimes you may need to set the EnableSsl to false (in this case the message will be sent unencrypted over the network)

提交回复
热议问题