Open Notepad and edit the batch file mail_merge.bat.
Some important parameters used in the batch file
- Change the parameters: -to test@exclamationsoft.com
-from test@exclamationsoft.com to your own email address.
- Change the parameter: -server localhost to your own
mail server
- Note the use of -dsn "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=c:\tmp\test.mdb". This is a normal connection string that instructs NetMailBot on
how to connect to the Access database.
- -dbquery
"SELECT Customers.first_name, Customers.last_name, Email.email FROM Customers, Email WHERE Customers.ID = Email.customer_id"
instructs NetMailBot to select all of the columns of data from the Customers and Email
tables in the Access database. The columns first_name and last_name are from the
Customers table, and the column email is from the Email table.
- -dbemailcolumn "email" instructs NetMailBot to use
the data in the column named "email" to address the message to the data contained in that
column for the current row.
- The parameter
-body "<<first_name>>=first_name,<<last_name>>=last_name" contains
replacementids which are explained next.
- -dbreplacementids "<<first_name>>=first_name,<<last_name>>=last_name"
instructs NetMailBot to replace the strings with double-angle brackets with the data contained
in the mapped column for the current row. For example, in the message body, NetMailBot will
replace the string <<first_name>> with the data contained in the column named "first_name".
- -personalize instructs NetMailBot to do make the replacements. Without
this parameter specified, NetMailBot will not perform any replacements.
Execute the batch file by double-clicking it in "My Computer".