-
Notifications
You must be signed in to change notification settings - Fork 0
/
FORMAT
53 lines (47 loc) · 920 Bytes
/
FORMAT
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
EXAMPLE OF XML
--------------
<riddance req="mailout">
<template>
<subject>EMAIL SUBJECT</subject>
<text>EMAIL BODY TEXT</text>
<html><![CDATA[EMAIL BODY HTML]]></html>
</template>
<iterations>
<unit email="RECIPIENT1@DOMAIN.COM">
<map k="VAR1" v="john"/>
<map k="VAR2" v="smith"/>
<block name="BLOCK1">
<item>
<map k="product" v="PRODUCT1"/>
</item>
<item>
<map k="product" v="PRODUCT2"/>
</item>
</block>
</unit>
<unit email="RECIPIENT2@DOMAIN2.COM">
<map k="VAR1" v="michael"/>
<map k="VAR2" v="jordan"/>
<block name="block1">
<item>
<map k="product" v="PRODUCTX"/>
</item>
<item>
<map k="product" v="PRODUCTY"/>
</item>
</block>
</unit>
</iterations>
</riddance>
EXAMPLE OF TEMPLATE HTML
------------------------
<html>
<body>
<h1>attention</h1>
This is {Name}<br/>
<!-- BEGIN DYNAMIC BLOCK: TestBlock -->
{Id}, {Data}...<br/>
<!-- END DYNAMIC BLOCK: TestBlock -->
end.
</body>
</html>