psf/400 email mapping exit program

100 pts.
Tags:
DNS
Networking
Printing
TCP
***** Some background. We are trying to email spool file(s) using PSFCFG object with the mail server set to *Local. TCP/IP, SMTP, and POP are setup and started. The SNDDST command works. When we set the User Defined Data on the spool file to MAILTAG with a valid email address and the mapping program on the PSFCFG object to *None, it works. ***** The Problem. When we set the MAILTAG to routing data and the mapping program to a user written RPGLE program we get the error MCH3601 Pointer not set for location referenced. We are on V5R3, we've checked for and installed all the PTF's we can find even remotely related to this issue, and I've checked the output data structure including the offsets and lengths multiple times. Any ideas? Anyone?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Try using Computer Keyes “KeyesMail” software to send your spooled files as attachments.

Discuss This Question: 2  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • Imazing
    Why are you using PSFCFG? Do you have a mail server on your local lan you can use as a mail relay server. We have just set this up but for physical files. We just point the AS/400 to route mail to the mail relay server and used snddst command to send the mail and attach the file. All you would have to do is convert the spool file to a physical file. I am not sure how to do that off the top of my head but if you get stuck I have some resources I could use to try to steer you in the right direction.
    0 pointsBadges:
    report
  • Mgimblet
    We've been doing this for a while now using an exit program without any problems. Are you placing a single quote before and after the email address? Your offset should be 543 for the email address. You may need to have the following code at the beginning of your exit program if you don't have it: PDFFILE IfEq *Blanks Move *AllX'00' OUTDS Return Endif EVAL OUTINFO = 542 OUTINFO IfGT OUTPUTLEN Return Endif
    0 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following