您的位置:首页 > 技术教程 > pb

在PB中如何使用Microsoft Outlook发送邮件
【字体: 整理日期:2006-2-18 0:00:00 打印本文】 【收藏此文
要实现这个功能,只需编写如下程序:
string ls_outlook,ls_attach,ls_addressee,ls_run_string,ls_path

//Microsoft Outlook 程序所在安全路径
ls_outlook = "C:\Program Files\Microsoft Office\Office\outlook.exe"

//收件人信箱
ls_addressee = "ferryman@163.net"

//添加附件
ls_attach = "c:\test.txt"

//生成完整的执行命令
ls_run_string = '"' + ls_outlook + '" /c IPM.Note /m ' + ls_addressee + ' /a' + ls_path

//执行程序
run(ls_run_string)

查询
关键词:
相关文章
标签Tags