标题: [共享]强大命令行发邮件工具blat.exe
[打印本页]
作者: zerocq
时间: 2007-11-30 17:28
标题: [共享]强大命令行发邮件工具blat.exe
运行一些监控脚本时,当出现一些问题用这个工具一句命令发邮件到tom邮箱
把tom邮箱的免费新邮件短信提示开通,出门也随时可以了解到电脑的情况:D:D
打算下边写个循环读取邮箱的脚本,让手机通过短信回复邮件来输入一些小命令控制电脑
blat网站:
www.blat.net
使用方法
blat body.txt -to ***@tom.com -base64 -charset Gb2312 -subje
ct "警告" -server smtp.***.com -u user -pw password
作者: zerocq
时间: 2007-11-30 17:29
附件无法上传...
作者: vkill
时间: 2007-12-1 15:46
让手机通过短信回复邮件来输入一些小命令控制电脑?
不太理解这段的意思,指点下
作者: knoppix7
时间: 2007-12-1 20:18
这种东西放BAT里有点太暴露了。。很容易email密码就丢了...
作者: shang1018
时间: 2009-1-21 13:07
看到有的累了!
作者: Savvy
时间: 2009-4-16 06:16
哪位大侠能详细解析一下blat,我try很久也没成功.
附件
1:
blat_2.6.1.rar (2009-4-16 06:16, 101.43 K,下载次数: 168)
作者: hugreen
时间: 2009-4-19 00:16
@echo off
:::::::::::::: 参数设置::::::::::::::
set from=xxx@163.com
set user=xxx
set pass=xxx
set to=xxx@qq.com
set subj=测试
set mail=mail_body.txt
set server=smtp.163.com
set debug=-debug -log blat.log -timestamp
::::::::::::::::: 运行blat :::::::::::::::::
blat %mail% -to %to% -base64 -charset Gb2312 -subject %subj% -server %server% -f %from% -u %user% -pw %pass% %debug%
pause > nul & exit /b
作者: qwertl
时间: 2009-4-19 05:37
blat怎样发指定的压缩文件附件呢??
作者: Cappuccin0
时间: 2009-4-19 10:57
前段时间为了批量发邮件,正好研究过这个工具^_^
1. blat可以在第一次运行时用install命令将密码等信息写入注册表,以后只调用相应的profile就可以发送了。保存在注册表的时候会加密的,起码不会出现把明文写到批处理
里面的问题
blat.exe /? | find "profile"
Blat -install <server addr> <sender's addr> [<try>[<port>[<profile>]]] [-q]
Blat -profile [-delete | "<default>"] [profile1] [profileN] [-q]
[<port> [<profile> [<username> [<password>]]]]]
: set server, sender, number of tries and port for profile
default profile can be specified with a '-'
-p <profile> : send with server, user, and port defined in <profile>
: use username and password if defined in <profile>
-profile : list all profiles in the Registry
2. 发送附件可以用-attach来指定,其他的几个选项在帮助里面都有
blat.exe /? | find "attach" | more
-attach <file> : attach binary file(s) to message (filenames comma separated)
-attacht <file> : attach text file(s) to message (filenames comma separated)
-attachi <file> : attach text file(s) as INLINE (filenames comma separated)
-af <file> : file containing list of binary file(s) to attach (comma
-atf <file> : file containing list of text file(s) to attach (comma
-aef <file> : file containing list of embed file(s) to attach (comma
: send multipart messages, breaking attachments on <size>
[
Last edited by Cappuccin0 on 2009-4-19 at 10:58 ]
作者: Cappuccin0
时间: 2009-4-19 11:00
类似的邮件批处理工具还有一个febootimail,貌似做的挺专业的,不过可惜是收费的。