Open Notepad and edit the batch file watch_filemask.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 -watchdir "c:\tmp\watchdir" instructs
NetMailBot to watch the directory "c:\tmp\watchdir" for files to send as attachments
to the -to email address.
- The parameter -watchdelete instructs NetMailBot to
delete the files in the directory "c:\tmp\watchdir" after the email is sent.
- The parameter -filemask "*.txt" instructs NetMailBot to
only watch for files ending with ".txt" the files in the directory "c:\tmp\watchdir".
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".
Go to the directory "c:\tmp\watchdir" to ensure the
files attach1.txt and attach3.txt have been deleted, but attach.log has not.
Close the DOS command window by clicking on the Close
button or by pressing CTRL-C.
Check your email account Inbox for an email containing
the file attachments attach1.txt and attach3.txt.