Open Notepad and edit the batch file watch_attachmentdir.bat.
Some important parameters used in the batch file
- Change the parameters: -to test@exclamationsoft.com
-from test@exclamationsoft.com to your own email address.
- Change the parameter: -server localhost to your own
mail server
- The parameter -attachmentdir "c:\tmp"
specifies a directory to retrieve files to attach from.
- The parameter -zip instructs NetMailBot to ZIP
compress all of the attachments into one ZIP file and send it as the attachment.
- The parameter -filemask "*.txt" instructs NetMailBot to
only watch for files ending with ".txt" the files in the directory "c:\tmp".
Only those files will be sent as attachments and deleted after the email is sent.
Execute the batch file by double-clicking it in
"My Computer".
Check your email account Inbox for an email containing
a single attachment named "attachment.zip"