Category:
Database Connectivity
Description:
In the database query specified with -dbquery, -dbemailcolumn selects the table column in the database that contains the email addresses.
Optional?
Yes.
Overrides:
None.
Overridden By:
None.
Other Parameters Required:
-to (required if -dbuseaddressee is NOT "to") -from -server
See Also:
-dbusecolumnindex -dbreplacementids -dbquery -dbtable -dbuseaddressee -dsn -dbupdatequery -dbconstants
Usage:
-dbemailcolumn "<column name>"
Example (cut-and-paste right into your batch file):
NetMailBot -dsn "mydb" -dbquery "SELECT * FROM Customers" -dbemailcolumn "EmailAddress" -to email@domain.com -from email@domain.com -server mail.domain.com -subject "test"
Comments:
If -dbuseaddressee is omitted, as in this example, the addressing of the email addresses taken from the database with -dbemailcolumn will default to "to".