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\;Extended properties=Text;".
This is a normal connection string that instructs NetMailBot on
how to connect to the data.txt file. NOTE: You should have install latest ODBC drivers on
your system should you encounter any ODBC errors.
- -dbquery "SELECT * FROM data.txt" instructs NetMailBot
to select all of the data from the file data.txt. The file data.txt is considered to be a
psuedo database 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
-bodyfile "c:\tmp\body.txt" instructs NetMailBot to use the contents of the file body.txt as
the email message body. In the file body.txt, you will see:
"<<name>>=name,<<tracking>>=tracking". These are
replacement ids which are explained next.
- -dbreplacementids
"<<name>>=name,<<tracking>>=tracking,<<attachment>>=attachment"
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 <<name>> with the data contained in the column named "name".
- -attachment "<<attachment>>" instructs NetMailBot
to attach a file based on the data contained in the column mapped to <<attachment>>,
which happens to be "attachment".
- -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".