1 / 28
文档名称:

vb mapi 收发电子邮件代码(vb mapi send and receive e-mail code).doc

格式:doc   大小:32KB   页数:28页
下载后只包含 1 个 DOC 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

vb mapi 收发电子邮件代码(vb mapi send and receive e-mail code).doc

上传人:dreamclb 2018/10/17 文件大小:32 KB

下载得到文件列表

vb mapi 收发电子邮件代码(vb mapi send and receive e-mail code).doc

文档介绍

文档介绍:vb mapi 收发电子邮件代码(VB Mapi send and receive e-mail code)
VB: send and receive e-mail
Sending and receiving e-mail is a very useful function for some applications that perform special tasks. For example, a software tool for work server resource usage, if it has the automatic email function, so when it is found that the server resource usage is close to the critical state set in advance, will be sent to the system administrator a warning email, so that the system administrator can timely take measures to avoid major accident. In Visual Basic, the application program can realize the function of sending and receiving e-mail by calling Microsoft Corp MAPI (Messaging Application Programming Interface, message application programming interface). In this paper, bination with a simple example, this paper introduces the programming method of sending and receiving e-mail in VB program.
The establishment of e-mail function VB program, you must use the Visual Basic 4 version of the above, because only more than 4 Visual Basic with two to achieve e-mail function core control: MAPI control and MAPI control message session. The MAPI session control is used to create and control a Microsoft Mail session, and the MAPI message control is used to create and receive mail messages. In addition, the program must run in an environment that uses MAPI messaging systems such as Microsoft Exchange, Microsoft Mail, Outlook, and so on.
Before you start programming, you first need to add the MAPI control to the VB toolbox. The specific operation is: select the Tools menu item in the Custom Controls mand in the
menu bar, called "Custom Controls" dialog box, in which the "Available Controls" list box, select the "Microsoft MAPI Controls" list, and then press the "OK" command button to exit the dialog box. Since then, the toolbox Xintian two icon, this is the MAPI session control and MAPI control message icon.
Below, the author will take two simple VB program as an example, respectively introdu