$time = Get-Date
Send-MailMessage -From "Xiong Wu <xiong.Wu@medeanalytics.com>" -to "wu.mai@medeanalytics.com" -cc "Xiong Wu <xiong.Wu@medeanalytics.com>" -Subject "test" -Body "ETL is done at $time !" -SmtpServer "smtp.medeanalytics.local"
本文介绍了一个使用PowerShell编写的脚本,该脚本能够在指定任务完成后发送邮件通知。具体包括设置邮件发送的时间、发件人、收件人等信息,并通过SMTP服务器完成邮件的发送。
$time = Get-Date
Send-MailMessage -From "Xiong Wu <xiong.Wu@medeanalytics.com>" -to "wu.mai@medeanalytics.com" -cc "Xiong Wu <xiong.Wu@medeanalytics.com>" -Subject "test" -Body "ETL is done at $time !" -SmtpServer "smtp.medeanalytics.local"
985
1579

被折叠的 条评论
为什么被折叠?