View Post for Code Snippets and Other Examples
Reply to Post ] [
Back To Forum ]
||"trotter" <trotter246 ( at ) gmail dot com>
||9/13/2010 5:29:39 AM
||attach all file from directory
|Hi all please can you help?
I am trying to add all text files in a directory c:\source as an attachment to an email but i cant get it right :(
string  files = Directory.GetFiles (@"c:\Source", "*.txt");
foreach (string file in files)
can anyone see where i am going wrong? please help this is driving me mad....