參考:Send-MailMessage (Microsoft.PowerShell.Utility) – PowerShell | Microsoft Learn
Send-MailMessage -From ‘f25b-server@systex.com.tw’ -To ‘ccyeh@systex.com.tw’ -Subject ‘Sending the test’ -Body “body. Sending now." -SmtpServer ‘mail.xxx.xx’ -UseSsl -Credential ccyeh@systex.com.tw
透過以上語法執行後系統會提示輸入密碼後就可以寄發了