RegKeeper - e-Sales Tracking Software

Template Tags

Template Tags are special strings used in an e-mail message template. A template tag is associated with a database field which value will replace the tag when the e-mail message will be sent to the recipient.

The syntax of a tag is:

	($<fieldname>)

Example:
The template contains the following text: Dear Mr. ($LastName),

When you send a message to your customer whose name is John Doe, the tag will be replaced and the resulting text will look like: Dear Mr. Doe,

In addition you can use extended instructions in your template tags. Supported extended instructions are: |,& and < symbols.

Symbol | is used to indicate the string to be used when the corresponding field value is empty.

Example:
If you use ($FieldName|Some string) in your e-mail template and the FieldName field has no value in the database, the composed e-mail message will include Some string in this place.

Symbol & is used to indicate the string to be added to the field value when the corresponding field value is not empty.

Example:
If you use ($FieldName&Some string) in your e-mail template and the FieldName field has value FieldValue, the composed e-mail message will include FieldValueSome string in this place.

Symbol < is used to indicate the string to be inserted before field value when the corresponding field value is not empty.

Example:
If you use ($FieldName<Some string) in your e-mail template and the FieldName field has value FieldValue, the composed e-mail message will include Some stringFieldValue in this place.

Copyright © 2002-2008 by Igor Siticov, SiComponents. All rights reserved.