找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 27193|回复: 10

[网络工具] Mapisend - 通过 Outlook 发送邮件

[复制链接]
发表于 2012-10-30 09:01:36 | 显示全部楼层 |阅读模式
我这台电脑上很奇怪,不能使用 Outlook.Application。于是找到了 Mapisend 这个工具来发送邮件。

用法:
C:\>Mapisend

Send MAPI messages from Win32 command line.
Usage: mapisend -r {-u -p} or {-i} [-c][-s][-m][-t][-f][-l][-v][-?]
Where...

-u  profile name (user mailbox) of sender
-p  login password
-i  interactive login (prompts for profile and password)
-r  recipient(s) (multiples must be separated by ';' and
    must not be ambiguous in default address book.)
-c  specifies mail copy list (cc: list)
-s  subject line
-m  specifies contents of the mail message
-t  specifies text file for contents of the mail message
-f  path and file name(s) to attach to message
-l  path and file name to the batch output log file
-v  generates verbose output
-?  prints this message

To use a space in the command line please surround the
setting with double quote marks.  Example:
   mapisend -i -r AlysonB;EugeneC -s "Test Message"

C:\>


示例:
Mapisend -u 邮件地址 -p 密码 -r 收件人邮箱1;收件人邮箱2 -s "主题" -t "内容.txt" -f "C:\附件 1.rar;C:\附件2.rar"


http://bcn.bathome.net/s/tool/index.html?key=Mapisend
发表于 2012-10-30 16:40:34 | 显示全部楼层
这个是不是要求电脑上安装有Outlook才行啊?
 楼主| 发表于 2012-10-30 16:47:08 | 显示全部楼层
回复 2# BAT-VBS


是的。没装 Outlook 的话可以用 blat 等工具。
发表于 2012-11-15 22:43:42 | 显示全部楼层
发送时
安全软件是否会提示?
 楼主| 发表于 2012-11-16 07:52:18 | 显示全部楼层
回复 4# wuhengsi


    不会
发表于 2012-11-18 16:26:12 | 显示全部楼层
Mapisend 是否要放在  系统32那文件夹
我试验  发生错误    代码如下:
Mapisend -u wy632g09@163.com -p 666639368wzf -r wlkpngsi88@163.com -s "发送邮件测试" -t "youjian.txt" -f "c:\FileNotification.rar"

请指教
 楼主| 发表于 2012-11-18 16:39:25 | 显示全部楼层
Mapisend 是否要放在  系统32那文件夹
我试验  发生错误    代码如下:
Mapisend -u  -p 666639368wzf - ...
wuhengsi 发表于 2012-11-18 16:26



    是的。放到 system32 目录,或者其他 path 变量里的文件夹里。

错误提示是什么?
发表于 2012-11-18 18:21:00 | 显示全部楼层
发贴前 测试运行 出错 提示  什么 API 3  的
现在 我把  文件  后缀 改为 Mapisend.EXE
从新执行  提示  系统无法执行指定的程序?
楼主  你是否可以 打包一个 OK 的程序发来给我试试
 楼主| 发表于 2012-11-18 19:14:58 | 显示全部楼层
发贴前 测试运行 出错 提示  什么 API 3  的
现在 我把  文件  后缀 改为 Mapisend.EXE
从新执行  提示   ...
wuhengsi 发表于 2012-11-18 18:21



我怀疑是你的安全软件把 Mapisend.exe 给隔离了。

我顶楼给出的示例是能够正确运行的。
发表于 2012-11-20 23:37:44 | 显示全部楼层
还是不能发送邮件,不知道是什么问题?!!!!!????
杀毒软件在测试前我已完全退出了
 楼主| 发表于 2012-11-20 23:50:22 | 显示全部楼层
回复 10# wuhengsi


你之前说会提示“系统无法执行指定的程序?”。现在还有这个提示吗?或者有没有其他的提示,执行后有什么反应?

会不会是系统问题?比如说你的电脑是否为 64 位的系统。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-17 05:11 , Processed in 0.018710 second(s), 8 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表