15 pts.
 SNDDST TYPE(*DOC) not working for big files
We are using SNDDST to send reports via internet e-mail. It works for small reports (text files) but not for larger ones. No error is shown when issuing the command. QSYS/SNDDST TYPE(*DOC) + TOINTNET((sbchenry@hotmail.com *PRI)) + DSTD('Sending a Text') + MSG('Find the report attached.')+ SNDFMT(*NOCHG) DOC(Report.TXT) FLR('TEMP') If Report.TXT is small, it is received as ascii text OK, it it's rather big (maybe 10K or more) the received text contains invalid ascii characters. Let me know if you have any idea to solve this problem Thanks

Software/Hardware used:
ASKED: August 3, 2006  12:17 PM
UPDATED: December 14, 2009  2:17 AM

Answer Wiki:
The 400 is splitting your attachment (don't ask what that means or why IBM does that) Just use CHGPOPA command to set your message split size to *NOMAX ====================================================== IBM does it for the same reason most other e-mail servers do something similar; the difference is that others generally have larger default limits. Most often, e-mail servers have a maximum size limit. Under OS/400 or i5/OS, rather than just blocking the transmission, the attached file is automatically sent in segments. A client that can reassemble the parts is needed. Technically, SMTP e-mail is not intended to be a 'file transport' mechanism. That's what FTP, etc., is for. E-mail servers shouldn't be taxed by trying to process large files through a protocol that is explicitly designed to handle relatively small text messages. It's bad enough that spam clogs e-mail servers. Large files put a definite drag on them. (That's all from the perspective of the purpose of SMTP e-mail. The reality is something else entirely.) Tom
Last Wiki Answer Submitted:  December 14, 2009  2:17 am  by  JohnAllen   0 pts.
All Answer Wiki Contributors:  JohnAllen   0 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _