digest email

NAML documentation   Watch a video
   Usages of this macro
The source code below doesn't have navigation links because no usage has been compiled yet. Navigation links depend on how and where the macro is used, so first you may try finding all usages of "digest email".
... in digest email.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<override_macro name="digest email" requires="subscription,node_list">
    <n.set_local_subscription.this_subscription/>
    <n.filter_by.both condition1="[n.local_subscription.user.can_view.current_node/]" condition2="[n.local_subscription.user.is_in_group group='Members' /]"/> 
    
    <n.if.not.list_is_empty>
        <then>
            <n.new_email.>
                <n.send>
                    <to.local_subscription.user.user_email/>
                    <to_name.local_subscription.user.name/>
                    <from_name.root_node.subject/>
                    <subject><n.local_subscription.node.subject/> --- <t>Digest Email</t></subject>
                    <text_part.local_subscription.digest_text/>
                    <html_part.local_subscription.digest_html/>
                    <bounce_to.local_subscription.user.bounces_address/>
                </n.send>
            </n.new_email.>        
        </then>
    </n.if.not.list_is_empty>
</override_macro>
Overrides default macro
... in email.naml
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<macro name="digest email" requires="subscription,node_list">
    <n.set_local_subscription.this_subscription/>
    <n.filter_by.local_subscription.user.can_view.current_node/>
    <n.new_email.>
        <n.send>
            <to.local_subscription.user.user_email/>
            <to_name.local_subscription.user.name/>
            <from_name.root_node.subject/>
            <subject><n.local_subscription.node.subject/> - <t>Digest Email</t></subject>
            <text_part.local_subscription.digest_text/>
            <html_part.local_subscription.digest_html/>
        </n.send>
    </n.new_email.>
</macro>