-watchfilenameisto (-wfit)
Previous Topic  Next Topic 

Category:

 

Attachments

 

Description: 

 

Switch used with -watchdir where the filename found becomes the "to" email address, format: email@domain.com (no extension, e.g. .txt, .doc, etc.).  The file is still attached.

 

Optional?

 

Yes.

 

Overrides:

 

None.

 

Overridden By:

 

None.

 

Other Parameters Required:

 

-from -server -watchdir

 

See Also:

 

 -watchfilenameisbody -watchfilenameissubject

 

Usage:

 

-watchfilenameisto

 

Example (cut-and-paste right into your batch file):

 

NetMailBot -watchfilenameisto -watchexit -watchdir "C:\Documents and Settings\reports" -to email@domain.com -from email@domain.com -server mail.domain.com -subject "test" 

 

Comments:

 

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.