Emailing PDF Document

475 pts.
Tags:
AS/400
E-mail applications
iSeries
PDF
SNDDST
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.

Answer Wiki

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

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 <a href=”http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/rzair/rzairsendmime.htm”>QtmmSendMail API</a>, the java mail API or others, or download and install any of the freeware or commercial products that can do the job.

Tom

Discuss This Question: 3  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
  • filuphaze
    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.
    475 pointsBadges:
    report
  • AZL
    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 pointsBadges:
    report
  • filuphaze
    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.
    475 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