Using New POP/400 Command POPRECVJ to Download Email Messages and Attachments - Support

Using New POP/400 Command POPRECVJ to Download Email Messages and Attachments

From Support

Jump to: navigation, search

The following instructions can be used to set up and use the new POP/400 POPRECVJ command to retreive POP email messages and attachments and place them into an IFS folder. Message headers are placed into the POPHDR2 file in library RJSPOP3.

Contents

Requirements

V5R1 or above of OS/400 and the Java JDK Version 1.4 are required.

The POP/400 library version 1.10 or above is also needed.

Determining if Java JDK 1.4 is installed

From the command line, type the following command:

WRKLNK OBJ('/qibm/ProdData/Java400/jdk14')  

If the jdk14 directory shows in the list, you have the JDK 1.4 version installed.

Setting up for using the POPRECVJ command

From the command line, type POPJAVAEN and press Enter. This will restore the necessary Java objects needed by POPRECVJ.

POPJAVAEN

Running the POPRECVJ command to retrieve email messages

From the command line, you can prompt to run the POPRECVJ command after adding RJSPOP3 to your library list.

POPRECVJ

Press F4.

  • Pop server host: Enter an IP host name or IP address to a valid POP3 server to retrieve mail from.
  • Pop user: Enter a valid POP3 user ID.
  • Pop password: Enter a valid POP3 user password.
  • Delete messages after: If set to *YES, all messages will be deleted from the selected POP mailbox after downloading to the iSeries.
  • Dest message text dir: Enter a valid IFS folder where the downloaded messages should be stored.
  • Dest message attachment dir: Enter a valid IFS folder where the downloaded message attachments should be stored.
  • Debug mode: If set to *YES, include debug mssage in the java log.
  • Display standard output result: If set to *YES, display the java log after running command.
  • Delete standard output result: If set to *YES, delete the java log temp IFS file after running command.
  • Exit program to process message: If you want a CL exit program to process the messages, enter the program name here. Sample exit program source can be found in file: SOURCE in library RJSPOP3.

Sample command

Sample command to retreive messages from a POP3 host name of 125.1.1.18

POPRECVJ POP3HOST('125.1.1.18') POPUSER(test@rjssoftware.com) POPPASS(password) DLTMSG(*NO) DESTMSGDIR('/RJSTEMP/RJSPOP3') DESTATTDIR('/RJSTEMP/RJSPOP3') DEBUG(*YES) DSPSTDOUT(*YES) DLTSTDOUT(*YES) EXITPGM(*NONE)
Personal tools