Installation

  1. Download 'smtp???.exe' and execute it on Windows95/98/NT/2000/XP to extract 'smtp???.savf'.
  2. Create save-file on your AS/400.
  3. Connect to the AS/400 using any FTP client software.
  4. Put the distribution (smtp???.savf) to the save-file in binary mode.
  5. Create/restore object to library 'SMTP' from the save-file using RSTOBJ command.

Sample instruction

Create save-files on the target AS/400:

> CRTSAVF FILE(QGPL/SMTP)
  File SMTP created in library QGPL.

Send save-files from Windows95/98/NT/2000/XP command prompt:

C:\>ftp your_as400_hostname
Connected to ????.
220-QTCP AT ????.
220 CONNECTION WILL CLOSE IF IDLE MORE THAN 5 MINUTES.
User (????:(none)): as400_user_id
331 ENTER PASSWORD.
Password:enter_password_for_the_user_id
230 ???? LOGGED ON.
ftp> bi
200 REPRESENTATION TYPE IS BINARY IMAGE.
ftp> put smtp???.savf qgpl/smtp
200 PORT SUBCOMMAND REQUEST SUCCESSFUL.
150 SENDING FILE TO MEMBER SMTP IN FILE SMTP IN LIBRARY QGPL.
250 FILE TRANSFER COMPLETED SUCCESSFULLY.
ftp: 225984 bytes sent in 34.44Seconds 6.56Kbytes/sec.
ftp> quit
221 QUIT SUBCOMMAND RECEIVED.

Go back to the 5250 session to restore objects:

> CRTLIB LIB(SMTP) TEXT('ILE-RPG SMTP client')
  Library SMTP created.
> RSTOBJ OBJ(*ALL) SAVLIB(SMTP) DEV(*SAVF) SAVF(QGPL/SMTP)
  5 objects restored from SMTP to SMTP.
> DLTF FILE(QGPL/SMTP)
  Object SMTP in QGPL type *FILE deleted.
> CHGCURLIB CURLIB(SMTP)
  Current library changed to SMTP.
> STRREXPRC SRCMBR(MAKE)
Start SNDM compilation.
 You must have authority to exec CRTxxx.
 Confirm that you have IBM supplied library QSYSINC.
 This procedure changes job's CURLIB before compilation.
* * * * * * * * * * * * * * * * * * * * * *

Change current library to "SMTP"...
  result-> 0

Start creating modules for SNDM...
  creating module SNDM...
  result-> 0
  creating module CDATE...
  result-> 0
  creating module FD_...
  result-> 0
  creating module GETERRINFO...
  result-> 0
  creating module GETFILENAM...
  result-> 0
...........(SNIP).............
  creating module PREPAREUS...
  result-> 0
  creating module SNDPM...
  result-> 0
  Creating main program (SNDM)...
  result-> 0

Start creating command ...
  creating pnlgrp...
  result-> 0
  creating command...
  result-> 0

Compile finished. Confirm error(s) if exists.

[Home]