Category:
Database Connectivity
Description:
Specifies which addressee ("To:", "CC:", or "BCC:") should be used for the email addresses to be taken from the database, for either uniform mass-mailings or mail merges with -personalize.
Optional?
Yes.
Overrides:
None.
Overridden By:
None.
Other Parameters Required:
-to (required if -dbuseaddressee is NOT "to") -from -server
See Also:
-dbemailcolumn -dbusecolumnindex -dbreplacementids -dbquery -dbtable -dsn -dbupdatequery -dbconstants
Usage:
-dbuseaddressee "<addressee type>"
<addressee type> is one of to, bcc, or cc. See the example below.
Example (cut-and-paste right into your batch file):
NetMailBot -dsn "mydb" -dbquery "SELECT * FROM Customers" -dbemailcolumn "email"-dbuseaddressee "to" -to email@domain.com -from email@domain.com -server mail.domain.com -subject "test"
Comments:
Use of -dbuseaddressee is additive with respect to the other addressing parameters for "To:" (-to), "Cc:" (-cc), and "Bcc:" (-bcc). Thus, if you choose -dbuseaddresee "to", then the email addresses fetched from the database column will add to any email addresses specified inline with -to.