send_subscription_invite

NAML documentation   Watch a video
   Usages of this macro
... in send_subscription_invite.naml
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
<override_macro name="send_subscription_invite" requires="subscription,node_page,servlet">
    <n.set_local_subscription
Macro
Parameters: subscription
.this_subscription
Binary
Namespace: SubscriptionNamespace
Parameters: do
 />
    <n.new_email
Binary
Namespace: NabbleNamespace
Parameters: do
.>
        <n.send
Binary
Namespace: EmailNamespace
Parameters: cc, text_part, bcc, attachments, to_name, subject, from_name, html_part, set_headers_for, aol_part, bounce_to, from, to
>
            <to><n.user
Binary
Namespace: SubscriptionNamespace
Parameters: do
.user_email
Binary
Namespace: UserNamespace
/></to>
            <subject><t>Subscribe to <t.location.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/></t></subject>
            <text_part>
                <t>Dear Dr. Geo user,</t>
 
                <t><t.owner_name.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/> is inviting you to subscribe to <t.location.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/> forum because your registered to Dr. Geo.</t>
               
 
                <t>With your subscription, updates will be sent directly to your email address. You can read the forum and manage your account from: 
                <n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.url
Macro
Requires: node
Parameters: template, date, index_record
/></t>
                
                <t>To confirm your subscription, click on the link below:</t>
                <n.local_subscription
Macro
Parameters: do
.send_subscription_invite_subscribe_by_code_url
Macro
Requires: subscription
/>
 
                <t>If you don't want to subscribe, just delete this message.</t>
                
                <t>Sincerely,</t>
                <t>The Dr. Geo team</t>    
            </text_part>
            <html_part>
                <t>Dear Dr. Geo user,</t><br/>
                <br/>
                <t><t.owner_name.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.owner
Binary
Namespace: NodeNamespace
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/> is inviting you to subscribe to <t.location.bold
Macro
Parameters: text
.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.subject
Macro
Requires: node
/> forum because you registered to Dr. Geo.</t><br/>
 
                <br/>
                <t>With your subscription, updates will be sent directly to your email address. You can also read the forum and manage your account from:</t> 
                <a href="[n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.url
Macro
Requires: node
Parameters: template, date, index_record
/]"><n.page_node
Binary
Namespace: NodePageNamespace
Parameters: do
.url
Macro
Requires: node
Parameters: template, date, index_record
/></a><br/>
                <br/>
                <t>To confirm your subscription, click on the link below:</t>
                <div style="background-color:#FFFADB;border:#EDDD79 solid 1px;margin:1.2em 0;padding:.5em">
                    <a href="[n.local_subscription
Macro
Parameters: do
.send_subscription_invite_subscribe_by_code_url
Macro
Requires: subscription
/]">
                        <n.local_subscription
Macro
Parameters: do
.send_subscription_invite_subscribe_by_code_url
Macro
Requires: subscription
/>
                    </a>
                    <br/>
                </div>
                <t>If you don't want to subscribe, just delete this message.</t><br/><br/>
                <t>Sincerely,</t><br/>
                <t>The Dr. Geo team</t><br/>
            </html_part>
        </n.send>
    </n.new_email.>
</override_macro>
Overrides default macro
... in invite_subscribers.naml
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<macro name="send_subscription_invite" requires="subscription,node_page,servlet">
    <n.set_local_subscription.this_subscription />
    <n.new_email.>
        <n.send>
            <to><n.user.user_email/></to>
            <subject><t>Subscribe to <t.location.page_node.subject/></t></subject>
            <text_part>
                <t>Dear user,</t>
 
                <t><t.owner_name.page_node.owner.name/> is inviting you to subscribe to <t.location.page_node.subject/>:</t>
                <n.page_node.url/>
 
                <t>With your subscription, updates will be sent directly to your email address
                and you can reply to them to participate in the discussion. Your subscription works the same
                as a mailing list.</t>
 
                <t>To confirm your subscription, click on the link below:</t>
                <n.local_subscription.send_subscription_invite_subscribe_by_code_url/>
 
                <t>Sincerely,</t>
                <t>The Nabble team</t>
                ________________________________________
                <t>Free Embeddable <t.app.page_node.view_name/></t> powered by Nabble
                <n.nabble_homepage/>
            </text_part>
            <html_part>
                <t>Dear user,</t><br/>
                <br/>
                <t><t.owner_name.page_node.owner.name/> is inviting you to subscribe to <t.location.bold.page_node.subject/>:</t><br/>
                <a href="[n.page_node.url/]"><n.page_node.url/></a><br/>
                <br/>
                <t>With your subscription, updates will be sent directly to your email address
                and you can reply to them to participate in the discussion. Your subscription works the same
                as a mailing list.</t><br/>
                <br/>
                <t>To confirm your subscription, click on the link below:</t>
                <div style="background-color:#FFFADB;border:#EDDD79 solid 1px;margin:1.2em 0;padding:.5em">
                    <a href="[n.local_subscription.send_subscription_invite_subscribe_by_code_url/]">
                        <n.local_subscription.send_subscription_invite_subscribe_by_code_url/>
                    </a>
                </div>
                <t>Sincerely,</t><br/>
                <t>The Nabble team</t><br/>
                ________________________________________<br/>
                <t>Free Embeddable <t.app.page_node.view_name/></t> powered by Nabble<br/>
                <n.nabble_homepage/><br/><br/>
            </html_part>
        </n.send>
    </n.new_email.>
</macro>