Results 1 to 2 of 2

Thread: Attach Entire Folder Contents to Email?

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2010
    Posts
    78

    Attach Entire Folder Contents to Email?

    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
    Last edited by WRCREX; May 14th, 2013 at 04:37 PM.

  2. #2
    PowerPoster dunfiddlin's Avatar
    Join Date
    Jun 2012
    Posts
    8,245

    Re: Attach Entire Folder Contents to Email?

    Er ... I'm not sure that that's possible in any way. Normally if you want to attach multiple files you'd do it as a zip file, surely?
    As the 6-dimensional mathematics professor said to the brain surgeon, "It ain't Rocket Science!"

    Reviews: "dunfiddlin likes his DataTables" - jmcilhinney

    Please be aware that whilst I will read private messages (one day!) I am unlikely to reply to anything that does not contain offers of cash, fame or marriage!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width