420 pts.
 Emailing PDF Document
I use CVT2PDF to convert a spooled file to a PDF document and then attach it to an email via SNDDST. My question is: Is there a way to include in the body of the email a message longer than the 256 characters? I concatenate 2 fields entered by users but need to include another message from the company.
ASKED: Jun 6, 2008  9:12 PM GMT
UPDATED: September 27, 2010  11:25:47 PM GMT
66,925 pts.

Answer Wiki:
Hi,

On the SNDDST command there is also a LONGMSG parameter which can handle up to 5000 characters.

Regards,

Martin Gilbert.

============================================================

The direct answer is that SNDDST is not appropriate for this. It is the wrong tool. It simply isn't equipped for it.

Use the SMTP facilities that are designed for it. In particular, use the QtmmSendMail API, the java mail API or others, or download and install any of the freeware or commercial products that can do the job.

Tom
Last Wiki Answer Submitted:  Sep 27, 2010  11:25 PM (GMT)  by  TomLiotta   66,925 pts.
Latest Answer Wiki Contributors:  Gilly400   23,625 pts.
To see other answers submitted to the Answer Wiki View Answer History.
Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _




 

This is true when you are sending a *LMSG, however I am sending a *DOC. Thanks for the input though. That did help with another question I was having.

 420 pts.

 

Filuphaze - what are the parameters that you fill in on the SNDDST command to send your PDF file? I have created the PDF file and it reside in a directory, but the SNDDST command asks for a folder name.

 20 pts.

 

AZL - In my CL I copy the pdf document into a folder on the IFS and then use that folder in my SNDDST and then delete it.

 420 pts.