小弟想在自己的程序中,调用Outlook Express创建一封新邮件,并用程序把发件人、收件人、主题和正文内容自动加入到邮件中(注:正文内容为HTML,有图片),请问怎样可以做到呢?望各位大哥帮帮忙!
解决方案 »
- 如何获取每个进程的I/0的读写字节数????
- 怎么区分编译状态还是运行状态。
- 请问TStringGrid中的取某行某列是哪个Windows消息?
- 高手请留步,一定要帮小弟一把,满分相送,关于xml文件解析的问题,万分感激!!!
- Delphi如何实现团队开发
- 关于操作word的巨难问题,高手高高手请进,俺再送50分
- 为何出现invalid column name'c93'错误,有分
- 请告诉我ICMP.dll这个动态链接库包含哪些函数,这些函数的具体含义是什么?
- 怎样控制输入数据类型和格式啊
- 三類型如何互相轉換:single , integer,string?
- 为什么键盘事件不响应?
- 如何判断鼠标是否在该控件?
var
ToolsMenu: CommandBar;
SendRecMenuItem, AllAccs: CommandBarControl;
begin
ToolsMenu := (Outlook.ActiveExplorer.CommandBars as CommandBars).Item['Tools'];
// D5 users can omit the underscore after 'Controls' in the next two lines
SendRecMenuItem := ToolsMenu.Controls_['Send and Receive'];
AllAccs := (SendRecMenuItem.Control as CommandBarPopup).Controls_['All Accounts'];
AllAccs.Execute;If you're using Outlook 2000, you'll have to change 'Send and Receive', perhaps to 'Send/Receive'. (I've had one report that this works, one that it doesn't - perhaps there are spaces around the '/'? Any clarification of this would be very welcome! Pointless menu changes don't make automation any easier...)
參考這裹
ShellExecute(0,Nil,PChar(SendMail),Nil,Nil,SW_SHOWNORMAL);