25 pts.
2,540 pts.

Answer Wiki:
Use the DSTD parameter of SNDDST:
Sample:
SNDDST TYPE(*LMSG)                 
TOINTNET(('someone@somecompany.dk'))
DSTD('some subject text..')
LONGMSG('some bodytext...')
DOCD(*DSTD)
Last Wiki Answer Submitted:  Jan 29, 2010  5:15 PM (GMT)  by  DanTheDane   2,540 pts.
To see other answers submitted to the Answer Wiki View Answer History.
Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _




 

My problem is that I am sending a document, not a long message. I need to put a variable reference in the subjetc line so the person receiving the email does not have to open the email to see this info.

 25 pts.

 

Is this in a CL or in an RPG program? In either case, use a variable to store the text you want in the subject line, and then concatenate that variable into the SNDDST command string. If you provide us with the method you are using to execute the SNDDST command, then we can better provide you with an example.

For instance, I wrote a CL program to use as a wrapper for SNDDST, which accepts a number of basic fields (such as TOINTNET, DSTD, LONGMSG, etc) as parameters and they are concatenated into the final command in the CL.

 4,975 pts.

 

This is in a CL:
CPYSPLF FILE(&FILE) TOFILE(EMAILLV) SPLNBR(*LAST)
CPYTOPCD FROMFILE(EMAILLV) TOFLR(EMAIL) +
TODOC(XXEMAIL.DOC) REPLACE(*YES)
SNDDST TYPE(*DOC) +
TOINTNET((’xxxx@xxx.com’)) MSG(&UNLMSG) +
DOC(XXEMAIL.DOC) FLR(EMAIL)

 25 pts.

 

Hi,
I just want to send a file where all the error details are stored.
How can i attached the file while sending the E-Mail through AS/400.
For sending E-Mail i wrote a CL program with SNDDST and send the Batch No as in the ‘Subject Line’ automatically for every transaction.

 10 pts.