Purpose
This example demonstrates how to use alternative delimiters in an HTML message body.
Prepared Example Files
The archive contains three files:
File Contents
This is the content of the batch file:
netmailbot -to test@test.com -from test@test.com -server smtp.mycompany.com -logfile c:\tmp\log.txt -dsn "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=D:\AltHTMLDelimiters\;Extended properties=Text;" -dbquery "SELECT * FROM data.txt" -dbemailcolumn "to" -dbreplacementids "$firstname$=firstname,$lastname$=lastname" -bodyfile "msg.html" -personalize -debug
This is the content of the data.txt file:
to,firstname,lastname
joe.blow@test.com,Joe,Blow
suzie.q@test.com,Suzie,Q
bob.smith@test.com,Bob,Smith
This is the content of the msg.html file:
<html>
<body>
<font face="arial">
Dear $firstname$ $lastname$,<br><br>
Here is your monthy newsletter!
</font>
</body>
</html>
Steps