question

PIBFSteve-3242 avatar image
0 Votes"
PIBFSteve-3242 asked PIBFSteve-3242 answered

SMTP Script Task is changing attachments path

0


I have developed an SSIS package that uses a fully qualified path for attaching a file to an smtp component. The attachment line looks like this:

Attachment attach = new Attachment("\server\sharedfolder\ssis\processes\labelprinting\LabelsToPrint.xlsx");

But whenever I execute the package on my local I get the following error:

Error: 0x1 at Script Task: Could not find a part of the path 'C:\server\sharedfolder\ssis\processes\labelprinting\LabelsToPrint.xlsx'.

Why is c: being prepended to my attachment which is causing the error?

This used to work until a couple of days ago but without any changes it is failing now.

Any help would be appreciated.

office-exchange-server-mailflowoffice-exchange-server-dev
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,
Since your question is related to Exchange development, I have added the tag “office-exchange-server-dev” which is used for Exchange development questions to it.
Thanks for your understanding and hope you will get the answer soon.

0 Votes 0 ·

1 Answer

PIBFSteve-3242 avatar image
0 Votes"
PIBFSteve-3242 answered

Thank you Kael. Wasn't sure what tag to use so appreciate the change.

steve

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.