-attachmentdir (-ai)
Previous Topic  Next Topic 

Category:

 

Attachments

 

Description: 

 

Specifies a directory to add attachments from.

 

Optional?

 

Yes.

 

Overrides:

 

None.

 

Overridden By:

 

None.

 

Other Parameters Required:

 

-to -from -server -attachsubfolders

See Also:

 

-filemask -zip

 

Usage:

 

-attachmentdir "<path to selected dir>"

 

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

 

NetMailBot -attachmentdir "C:\Documents and Settings\Invoices" -to email@domain.com -from email@domain.com -server mail.domain.com -subject "test" 

 

Comments:

 

Use with -zip to compress files into one zip file and attach. Use with -filemask to specify only certain files, e.g. "*.txt".

 

The parameters -attachment-attachmentlist, and -attachmentdir all act additively when used in combination, they do not override each other.