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