
PowerShell
政桓
软件研发高级经理
展开
-
mail.ps1-不发附件
$emailFrom = "abc@mail.com" $emailTo = "abc@mail.com" $smtpUser = "abc@mail.com" $smtpPassword = "passwd" $subject = "Mail Test" $body=转载 2011-10-14 14:38:59 · 368 阅读 · 0 评论 -
mail.ps1-最简单
Send-mailmessage -from abc@mail.com -to abc@mail.com -cc abc@mail.com -subject “test” -body “body” -Attachment “test.log” -smtpServer s原创 2011-10-14 17:09:18 · 765 阅读 · 0 评论 -
mail.ps1-发附件
#mail server configuration $smtpServer = "smtp-server.com" $smtpUser = "abc@mail.com" $smtpPassword = "passwd" #create the mail message转载 2011-10-14 14:32:20 · 462 阅读 · 0 评论