DSSendMail syntax question
Posted: Fri Dec 21, 2007 10:41 am
I am using DSSendMail as an after-job subroutine. Mostly, it works correctly but when I attempt to have it send an attachment, it reports:
The statement I am using is found below.
If I remove the "Attach" segment (below), it works fine.
Can anyone point me to a reason why the file would not be accessible?
- Cannot open attachment file 'D:\Ascential\DataStage\Staging\Orbit_rod\seqCompliance\Rejects\UnknownBase.csv'
The statement I am using is found below.
Code: Select all
From: #jpSequence#@datastage.adp.com\nTo: #jpSmtpRecip# #jpSmtpCopy#\nSubject: (#jpOrbitServer#.#jpOrbitUserId#): Unknown system bases\nServer: #jpSmtpHost#\nAttach: #jpFilePath#\#jpProject#\#jpSequence#\Rejects\UnknownBase.csv\nBody: The attached file contains the list of systems that show an unknown OS or Hardware base.
Code: Select all
From: #jpSequence#@datastage.adp.com\nTo: #jpSmtpRecip# #jpSmtpCopy#\nSubject: (#jpOrbitServer#.#jpOrbitUserId#): Unknown system bases\nServer: #jpSmtpHost#\nBody: The attached file contains the list of systems that show an unknown OS or Hardware base.