-to (-t)
Previous Topic  Next Topic 

Category:

 

Addressing

 

Description: 

 

TO email address, e.g. no@no.net.

 

Specify multiple email addresses by placing a space between each email address. 

 

NOTE: If the parameter -tolist is specified, this parameter is ignored.

 

Optional?

 

No.

 

Overrides:

 

None.

 

Overridden By:

 

-tolist -watchfilenameisto

 

Other Parameters Required:

 

-from -server

 

See Also:

 

-tolist -tofriendly -watchfilenameisto

Usage:

 

-to <first to email address> <second to email address> [...]

 

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

 

NetMailBot -to myname@email.com -from email@domain.com -server mail.domain.com -subject "test"

 

Comments:

 

If you have a larger number of recipients you wish to appear in the "To:" field of the outgoing message(s), consider using -tolist instead of typing them all on the command line.

 

If you have a "really large" number of recipients, stored perhaps in a Microsoft Excel spreadsheet or database, consider using NetMailBot's database connectivity features to retrieve the "To:" addresseses automatically with -dbuseaddressee and other parameters. Click here for an example using Excel.

 

If -to is not present then you must have at least one of these: -tolist-preview or -popreply.