批处理脚本发送电子邮件 [英] batch script to send email
本文介绍了批处理脚本发送电子邮件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何编写Windows批处理脚本来发送邮件?举个例子
How to write a Windows batch script to send a mail? Give an example
推荐答案
您将需要使用第三方工具,如BLAT(的 http://www.blat.net/ )。然后在您的批处理文件,你会像下面的一行:
You will need to use a third party tool such as blat (http://www.blat.net/). Then in your batch file, you would have a line like the following:
BLAT -to foo@bar.com -f bar@foo.com -subject电子邮件主题 - 身体电子邮件正文-server mysmtphost
blat -to foo@bar.com -f bar@foo.com -subject "Email Subject" -body "Email body" -server mysmtphost
这篇关于批处理脚本发送电子邮件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文