send_node_as_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 "send_node_as_email".
... in reply.naml
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
<macro name="send_node_as_email" requires="node">
    <n.set_local_node.this_node/>
    <n.block.>
        <n.if.visitor.is_registered>
            <then.get_parameter_values. name="email-to">
                <n.loop.>
                    <n.set_var name="email" value="[n.parse_email.current_parameter_value/]" />
                    <n.if.not.is_null.var name="email">
                        <then.local_node.topic_or_app.subscription_for. email="[n.var name='email'/]">
                            <n.send_node_as_email_to_user.local_node/>
                        </then.local_node.topic_or_app.subscription_for.>
                    </n.if.not.is_null.var>
                </n.loop.>
            </then.get_parameter_values.>
        </n.if.visitor.is_registered>
    </n.block.>
</macro>