Using POP/400 to retrieve Castelle FaxPress Status Emails and Write the statuses into ERSLOG00 Email Log File - Support

Using POP/400 to retrieve Castelle FaxPress Status Emails and Write the statuses into ERSLOG00 Email Log File

From Support

Jump to: navigation, search

Requirements to Use Email Notification of Fax Completion and Add to ERSLOG00

1.) Email Report Server/400 V2.47 must be installed. FAXCASTELE command now write RPTID keyword in subject line of each outbound fax along with a 9 digit unique ID which tracks back to the original spool file sent. Info for RPTIF is stored in file FAXID00.

2.) POP/400 must be installed for retreiving the messages and processing via the POPFAX1C exit program which processes each email message and writes fax status info to the log. We write to the log even if RPTID is not found in the fax. When RPTID not found, the fax is flagged as an error.

3.) Castelle FaxPress SMTP Gateway Software must be configured to send success and failure messages to an email account on your mail server.

Sample Command for testing interactively to retrieve and process emails from the Castelle Faxpress Server

RJSPOP3/POPGET POP3HOST('1.1.1.1') USER(castelle@yourdomain.com) PASSWORD(yourpassword) GETMESSAGE(*YES)  DELETEMSG(*NO) EXITPGM(RJSERS/POPFAX1C)                                                          

Note: When going into production, change DELETEMSG to *YES to remove from your POP3 mail server.

Sample Command for Running POPGET in batch mode regularly every 300 seconds and ending processing at 5pm.

RJSPOP3/POPMON DELAY(*DELAY) DLYTIM(300) ENDTIME(170000) FILE(POPMSG) POP3HOST('1.1.1.1') USER(castelle@yourdomain.com) PASSWORD(yourpassword) GETMESSAGE(*YES) DELETEMSG(*NO) EXITPGM(RJSERS/POPFAX1C)

Note: When going into production, change DELETEMSG to *YES to remove from your POP3 mail server.

Running POP3 Email Monitor Continuously Normally you will probably run POPMON in batch mode by submitting the above POPMON command to job queue QSYSNOMAX. Then the monitor will run in subsystem QSYSWRK and will not impede jobs that are submitted to job queue QBATCH.

Display POP3 Messages that have been previously downloaded

RJSPOP3/POPDSP FLENME(POPMSG) LIBNME(RJSPOP3)
Personal tools