Windows 7 - Powershell 試用-command發信件
Windows 7 的 power 居然內建發 mail 的功能,真是令人驚豔!!原本只有 Linux 才有的功能全部都參考了!! 既然抄了mail當然連 man 這個指令也抄了,所以首先讓我們 man 一下指令的用法 PS C:\Users\mtchang> man Send-MailMessage NAME Send-MailMessage SYNOPSIS Sends an e-mail message. SYNTAX Send-MailMessage [-To] [-Subject] -From [[-Body] ] [[-SmtpServer] ] [- Attachments ] [-Bcc ] [-BodyAsHtml] [-Cc ] [-Credential ] [-DeliveryNot ificationOption {None | OnSuccess | OnFailure | Delay | Never}] [-Encoding ] [-Priority {Normal | Low | H igh}] [-UseSsl] [ ] DESCRIPTION The Send-MailMessage cmdlet sends an e-mail message from within Windows PowerShell. RELATED LINKS Online version: http://go.microsoft.com/fwlink/?LinkID=135256 REMARKS To see the examples, type: "get-help Send-MailMessage -examples". For more information, type: "get-help Send-MailMessage -detailed". For technical information, type: "get-help Send-MailMessage -full". 實際的使用 Send-MailMessage P...