Please help with attaching all files within a directory to an email.

Author Message
stylishjm

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 12/6/2011
  • Status: offline
Please help with attaching all files within a directory to an email. Wednesday, December 07, 2011 3:06 AM (permalink)
0
Hello,
 
We have a scheduled task that runs a script which zips up some files in a directory, names the zip file, emails the zip to a predefined address then deletes the zip file.
Here is the source code:
http://pastebin.com/nA6cikGA
 
What we need now, is for it to just skip the zipping part and attach all the files in the directory and send it.
 
Can anyone please help?
 
 
 
#1
    59cobalt

    • Total Posts : 979
    • Scores: 91
    • Reward points : 0
    • Joined: 7/17/2011
    • Status: offline
    Re:Please help with attaching all files within a directory to an email. Wednesday, December 07, 2011 7:02 AM (permalink)
    0
    objEmail.AddAttachment FILE_1
    objEmail.AddAttachment FILE_2
    ...

     
    #2

      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2012 ASPPlayground.NET Forum Version 3.9