Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27554

VS 2012 Attach Entire Folder Contents to Email?

$
0
0
Hey guys. I simply need to attach an entire folder to email. Is this possible using vb.net, or do you have to specify files? I have searched Google and can only find results related to VBA which don't fall within the right context.

To clarify, I am planning on specifying a path (string variable) then using " Dim attachFile As New Attachment(path)" to try to email the folder. The thing is, I just don't know the syntax for the path itself. If I set the path to C:\fftest\, it won't email the whole folder (or anything at all, error occurs). Same with C:\fftest. File permissions are fine.

Thanks!
Ryan

Viewing all articles
Browse latest Browse all 27554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>