************************************* * * * DB/C Newsletter * * April 2001 * * * ************************************* News and Comments Beta testing of DB/C FS 3.0 has started. If all goes well, we will release it in May. If you are interested in participating in the DB/C FS 3.0 beta test program, send an email to us at support@dbcsoftware.com. Over the past few years, we've had several requests for a version of DB/C DX that could be distributed, for demonstration purposes only, along with application software, to an unlimited number of users. We now offer such a DB/C DX runtime license. The license has several limitations. It's available only for Windows. It does not include the compiler or Smart Client. Most importantly, the DB/C runtime expires in 12 months. We provide 12 keys - one that expires in each of the next 12 months. This demo version of DB/C DX is not available through the DB/C Online Sales and Update System. Contact us at info@dbcsoftware.com to purchase and for more information. A couple of months ago, a customer requested that we investigate the possibility of porting DB/C DX to run on an IBM mainframe. We had looked into porting DB/C in the past, but had come to the conclusion that it was not feasible because of the limitations of the terminals that are typically connected with a mainframe. With the advent of Smart Client and support for TCP/IP on the mainframe, the limitations no longer exist. We've just spent three days doing the initial port to OS/390 and (surprise) it worked! We still have to do final development and testing, but if you have any situation that might call for DB/C DX to run on an IBM S/390 mainframe, contact us. If you plan on attending the DB/C DX and JX Language Fundamentals class scheduled for June 18-20, please let us know by May 15th. don.wills@dbcsoftware.com ****************************************************************************** Receiving Email with DB/C DX This article describes the 'getmail' program, written with DB/C DX, that receives email from an email server into a DB/C program. In a sense, it is a mirror of the email sending programs that have been described in prior issues of the DB/C Newsletter. The sample program that receives email is available as 'getmail.prg' at 'ftp.dbcsoftware.com'. Login using FTP as user 'anonymous' and provide your email address as the password. The 'getmail.prg' program can be found in the '/pub/misc/dxsample' directory. Once you've retrieved the program, you'll need to make minor changes to make it work. The first thirty or so lines are code that receive all of the emails that are waiting to be delivered. The following statement, found inside the main loop, needs to be modified for your environment: call recvmail with "mailhost.test.com", "user", "pswd", msghead, msgtext The first parameter is the name of the email server from which email will be received. Change it to the DNS name or IP address of your email server. The parameters with values "user" and "pswd" must be replaced with the login user name and password for your email server. The 'recvmail' routine contains the code that actually does the work of receiving one email from the email server. None of those lines should need to be changed. The 'recvmail' routine uses the POP3 protocol to retrieve an email. POP3 is the oldest and easiest to use of the several email delivery protocols in use today. Most email servers are configured to deliver email with POP3. Note that when an email has been retrieved by the program, it is deleted from the email server. We've done basic testing of this program, but as with any program, there may be bugs in it. If you find any problems, let us know so we can fix them and reflect the changes into the sample program. ****************************************************************************** DB/C Class Schedule Class: DB/C DX and JX Language Fundamentals Date: (tentative) June 18-20, 2001 Location: To be determined For information, send email to admin@dbcsoftware.com. ****************************************************************************** Subscribing to the DB/C Newsletter If you don't already have the DB/C Newsletter delivered to your email address and would like to have it emailed to you monthly, just send an email message to 'dbcnews-subscribe@dbcsoftware.com'. The newsletter will be delivered to the email address from which the message was sent.