Mailings - Sending out newsletters > Templates - Re-usable text modules > Using text modules > Inserting a text module using AGNITAS-Tags

Inserting a text module using AGNITAS-Tags

A template works a bit like a form. It consists of areas, entry fields and placeholders. Text entered into a field will then be inserted into the e-mail and sent to the recipient. Any text may be customized, for instance including a personal address. Further information can be found in the mailings chapter "Creating customized mailings".

We promised you flexible templates, didn’t we? The secret lies in linking a template to various text modules for a mailing. Inside the template text, you insert an AGNITAS tag acting as placeholder for a certain text module. You need not define the contents of the text module in the template. This is done later when creating a new mailing. If the content of the text module is to remain the same for multiple newsletters, you can define the contents of the text modules directly in the template and then use this in the mailing. For details, see chapter "Further details for creating templates".

Let us give you an example. The following text is typed into the Text Version field in the new template entry dialog.

[agnTITLE type=1]
Welcome to this week’s special offers from your seed catalog!
[agnDYN name="maintext"/]
Yours sincerely
Your Seed Newsletter Service

The first line inserts a customized greeting for the recipient (see chapter " Creating customized mailings"). The second line is normal text which the  OpenEMMwill insert into the finished email. The secret of templates lies in the third line: [agnDYN name=" maintext "/] inserts the maintext text module into the finished email. The template does not know which text will be inserted here. This is the whole point of templates. You must enter text into that module later under Content when creating a new mailing. All text modules defined in the template are listed here in alphabetical respectively numerical order. The remaining lines or blank lines will be integrated by the system into the mailing as is.

Please note: The AGNITAS tag uses special notation. The right square bracket is precedes by a slash. This shows the OpenEMM that the tag is finished. The following chapter explains why.

The entries could result in the following email (depending on the recipient and the contents of the maintext text module):

Dear Mr Smith
Welcome to this week’s special offers from your seed catalog!
Looking forward to banning your winter boots to the attic and doing some gardening? We can offer you all you need for a colorful garden. This week's special offer: spring flower seeds for your garden! Check out our latest online offers on
http://www.my-company.com/springseed.htm
Yours sincerely
Your Seed Newsletter Service

There is no limit to the number of text modules you may insert. It makes sense to create a unique text module for each special offer (as in the example). To save time and make working with text modules easier, you should select meaningful and explicit names for your text modules.