中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-11 18:04
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » [Share] Powerful command-line email sending tool blat.exe
Printable Version  3,956 / 9
Floor1 zerocq Posted 2007-11-30 17:28
中级用户 Posts 196 Credits 458
When running some monitoring scripts, when some problems occur, use this tool to send an email to the tom mailbox with one command.

Activate the free new email SMS notification for the tom mailbox, so that you can always know the computer situation when going out :D:D

Plan to write a script to read the mailbox in a loop below, and let the mobile phone input some small commands to control the computer by replying to the email via SMS.

blat website: www.blat.net

Usage method

blat body.txt -to ***@tom.com -base64 -charset Gb2312 -subje
ct "Warning" -server smtp.***.com -u user -pw password
Floor2 zerocq Posted 2007-11-30 17:29
中级用户 Posts 196 Credits 458
The attachment cannot be uploaded...
Floor3 vkill Posted 2007-12-01 15:46
金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽
Let the mobile phone input some small commands to control the computer by replying to emails via text messages? Not very understanding the meaning of this paragraph, give some guidance
Floor4 knoppix7 Posted 2007-12-01 20:18
银牌会员 Posts 634 Credits 1,287 From cmd.exe
This kind of thing put in the BAT is a bit too exposed. It's very easy to lose the email password...
Floor5 shang1018 Posted 2009-01-21 13:07
新手上路 Posts 1 Credits 1
Got a bit tired of looking!
Floor6 Savvy Posted 2009-04-16 06:16
初级用户 Posts 18 Credits 25
Which expert can give a detailed explanation of blat? I've tried for a long time without success.

Attachments
blat_2.6.1.rar (101.43 KiB)
Floor7 hugreen Posted 2009-04-19 00:16
初级用户 Posts 15 Credits 23
@echo off
:::::::::::::: Parameter Settings::::::::::::::
set from=xxx@163.com
set user=xxx
set pass=xxx
set to=xxx@qq.com
set subj=Test
set mail=mail_body.txt
set server=smtp.163.com
set debug=-debug -log blat.log -timestamp
::::::::::::::::: Run blat :::::::::::::::::
blat %mail% -to %to% -base64 -charset Gb2312 -subject %subj% -server %server% -f %from% -u %user% -pw %pass% %debug%

pause > nul & exit /b
Floor8 qwertl Posted 2009-04-19 05:37
中级用户 Posts 243 Credits 461
How to send an attachment of a specified compressed file with blat?
Floor9 Cappuccin0 Posted 2009-04-19 10:57
新手上路 Posts 7 Credits 9
I studied this tool some time ago for bulk email sending ^_^
1. Blat can use the install command to write password and other information to the registry when running for the first time, and then only call the corresponding profile to send later. When saved in the registry, it will be encrypted, at least there will be no problem of writing plaintext into the batch file


2. To send an attachment, you can use -attach to specify, and the other several options are all in the help


[ Last edited by Cappuccin0 on 2009-4-19 at 10:58 ]
Floor10 Cappuccin0 Posted 2009-04-19 11:00
新手上路 Posts 7 Credits 9
There is also a similar email batch processing tool called febootimail, which seems to be quite professional, but unfortunately, it is a paid one.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023