Author: EduardoAndres | Posted on: 9/8/2009 2:46:33 PM | Views : 275

Greetings!
I have a problem attaching a file  when I want to send an email.
The following is the code that I'm using to get the file from the network path:
msgMail.S_Attach.Add(@"'\\server\Quotes\'" + filename);
The following is the error I get:

Could not find a part of the path 'c:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\'\server\Quotes\'Q-13097-VBSS.pdf'.
I don't know why it shows my local path plus the network path I'm writing and I would like to know how to get the file from \\server\Quotes\'" + filename and make it work.
Any help will be greatly appreciated.
Eduardo
...

Go to the complete details ...