Switch used with -watchdir where the filename found becomes the "to" email address, format: email@example.com (no extension, e.g. .txt, .doc, etc.). The file is still attached.
Other Parameters Required:
Example (cut-and-paste right into your batch file):
NetMailBot -watchfilenameisto -watchexit -watchdir "C:\Documents and Settings\reports" -to firstname.lastname@example.org -from email@example.com -server mail.domain.com -subject "test"
When used, the -to parameter is not required.
If the filename found is not in the form of a valid email address, e.g. "filename.ext", NetMailBot will still attempt to send an email, but will undoubtedly fail.