LANSA Integrator SMTP Service cannot send email attachment from QDLS
|Date:||29 April 2004|
|Product/Release:||LANSA Integrator 10.0|
|Abstract:||Error: 'Attachment file does not exist' sending mail with attachment from iSeries QDLS|
|Submitted By:||LANSA Technical Support|
|Last Review:||December 2010|
Attempting to send an email using LANSA Integrator when the attachment exists in QDLS causes the service to fail immediately with this return code...
JSM Status Code ERROR
JSM Message Attachment file does not exist : /qdls/AAA/myfile.txt
Sending emails via QDLS has been restricted by IBM.
The reason is that QDLS is not thread safe so threaded jobs cannot access it. Java jobs are automatically threaded so java.io.* classes cannot access files in QDLS.
As you can see by the tests run below, accessing files in folder QDLS is not possible.
Path is directory : /
Path exists : /
Path is directory : /QOpenSys
Path exists : /QOpenSys
Path is directory : /QNTC
Path exists : /QNTC
Path does not exist : /QDLS
Path does not exist : /QDLS/MYFOLDER/
Path does not exist : /QDLS/MYFOLDER/LXXDID.DEL
Java program completed
One suggestion is to use another folder in the IFS like /QOpenSys/some-dir.