How to send email with PowerShell

后端 未结 4 1931
南笙
南笙 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:12

    I use this:

    Send-MailMessage -To hi@abc.com -from hi2@abc.com -Subject 'hi' -SmtpServer 10.1.1.1
    

提交回复
热议问题