[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

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

我这台电脑上很奇怪,不能使用 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

这个是不是要求电脑上安装有Outlook才行啊?

TOP

回复 2# BAT-VBS


是的。没装 Outlook 的话可以用 blat 等工具。

TOP

发送时
安全软件是否会提示?

TOP

回复 4# wuhengsi


    不会

TOP

Mapisend 是否要放在  系统32那文件夹
我试验  发生错误    代码如下:
Mapisend -u [email]wy632g09@163.com[/email] -p 666639368wzf -r [email]wlkpngsi88@163.com[/email] -s "发送邮件测试" -t "youjian.txt" -f "c:\FileNotification.rar"

请指教

TOP

Mapisend 是否要放在  系统32那文件夹
我试验  发生错误    代码如下:
Mapisend -u  -p 666639368wzf - ...
wuhengsi 发表于 2012-11-18 16:26



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

错误提示是什么?

TOP

发贴前 测试运行 出错 提示  什么 API 3  的
现在 我把  文件  后缀 改为 Mapisend.EXE
从新执行  提示  系统无法执行指定的程序?
楼主  你是否可以 打包一个 OK 的程序发来给我试试

TOP

发贴前 测试运行 出错 提示  什么 API 3  的
现在 我把  文件  后缀 改为 Mapisend.EXE
从新执行  提示   ...
wuhengsi 发表于 2012-11-18 18:21



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

我顶楼给出的示例是能够正确运行的。

TOP

还是不能发送邮件,不知道是什么问题?!!!!!????
杀毒软件在测试前我已完全退出了

TOP

回复 10# wuhengsi


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

会不会是系统问题?比如说你的电脑是否为 64 位的系统。

TOP

返回列表