批处理脚本发送电子邮件

6 email batch-file windows-server-2008

如何编写Windows批处理脚本来发送邮件?举个例子

Rob*_*lih 5

您需要使用第三方工具,例如blat(http://www.blat.net/).然后在批处理文件中,您将拥有如下所示的行:

blat -to foo@bar.com -f bar@foo.com -subject"Email Subject"-body"Email body"-server mysmtphost