![]() |
|
|
Example
Source Code The files are: SMTP.C
- A program that sends files to TRACSMail. These modules refer to other functions in EPS Inc.'s library that are not being made available. A skilled programmer should be able to figure out roughly what the other functions do from the name and context. The purpose of making this code available is to provide an example of programs that implement the SMTP and IMAP protocols to other entities that are writing their own e-mail clients. EPS, Inc. is not providing executable versions of these programs. EPS, Inc. does not claim that this is particularly good code or that it is bug-free. Use at your own risk. No technical support is available. EPS, Inc. disclaims any and all responsibility and warranties of the use of this code. All of EPS, Inc.'s source code is copyrighted and may be used only with the permission EPS, Inc. Both main modules use a function called XVExpect() for most of the work. The first parameter of XVExpect() is a pointer to a network socket structure. The second parameter is the expected reply code for SMTP or the message sequence number for IMAP. The third parameter is a format string and all subsequent parameters are referred to by the format string. The XVExpect() function formats and sends the string and waits for a response. Questions and comments can be addressed to: Richard Heurtley. |