Keeps sending csv as attachment why? Can u please help code is attacheed?
I think you need to give us a little more to go on.
Can you provide a job ID?
Job Number: 00889571
Sent By User: T2/NCSSUITE
Entered System: 05/15 10:46 EDT
Report Generated: 05/15 10:46 EDT
Customer Reference: binary
Billing Code:
Posting Status: DONE
Expiration: 05/18 10:46 EDT
List(s):
Subject: E-Mail Subject 10:39
Do you see anything? Thanks
Looks to me like the right documents are being included, but the file names that are getting passed in are all the same.
That's because the same local variable (myFileName) is used throughout, and the code changes it each time through:
Line 81:
EasyLinkJobSub_ws.EncodableStringType myFileName = new EasyLinkJobSub_ws.EncodableStringType();myFileName.Value = sEmailFilesPath + "Body.txt";
Line 107:
myFileName.Value = oFileInfo.Name;// sEmailFilesPath + "Derby.pdf";// oFileInfo.Name; JS_Documents[1].Filename = myFileName;
Line 128:
myFileName.Value = sEmailFilesPath + "SendTo.csv";JS_Documents[2].Filename = myFileName;
I think if you use different variable names for the different file names, the names won't overwrite each other and things will look better.