Page 1 of 1

How to attach a file in the DSSendmail after subroutine

Posted: Tue Apr 10, 2007 3:07 am
by sjordery
I wants to attach a file in the DSSendmail post job routine.
I have set the parameter as mentioned below.

From:jordery@abcd.com\nTo:pqr@abcd.com\nServer:smtp.ss.com\nAttach:/usr/ctg/dbacess.txt

Here the attached file dbacess.txt is not being transferred in the mail only a blank mail is transferred.
Can you suggest me what is the problem?

Posted: Tue Apr 10, 2007 7:33 am
by DSguru2B
In routines, under utilities you have DSSendMailAttachmentTester(). Test that out and see if it works there first. If it does, look at its code and use that to send an attachment.

Posted: Tue Apr 10, 2007 1:00 pm
by ray.wurlod
There needs to be a colon between "Attach" and the path name, not a space.