Switch used with -watchdir where the filename found becomes the "to" email address, format: firstname.lastname@example.org (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 email@example.com -from firstname.lastname@example.org -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.