after_registration

NAML documentation   Watch a video
   Usages of this macro
... in after_registration.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<override_macro name="after_registration" requires="user">
    <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.email_field
Macro
Parameters: do
.value
Binary
Namespace: FieldNamespace
/>
            <to_name.local_user
Macro
Parameters: do
.name
Binary
Namespace: UserNamespace
Parameters: truncate
/>
            <bcc.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.owner
Binary
Namespace: NodeNamespace
Parameters: do
.user_email
Binary
Namespace: UserNamespace
/>
            <from>harvey44@nyskiblog.com</from>
            <from_name.welcome_email_from_name
Macro
/>
            <subject.welcome_email_subject
Macro
/>
            <text_part.welcome_email_text
Macro
Requires: user
/>
            <html_part.welcome_email_html
Macro
Requires: user
/>
        </n.send>
    </n.new_email.>
</override_macro>
Overrides default macro
... in email_registration_notification.naml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<override_macro name="after_registration" requires="user">
    <n.overridden/>
    <n.set_local_user.this_user/>
 
    <n.users_in_group. group="[n.administrators_group/]">
        <n.loop.>
            <n.new_email.>
                <n.send>
                    <to.current_user.user_email/>
                    <to_name.current_user.name/>
                    <from_name.root_node.subject/>
                    <subject><t>New user:</t> <n.local_user.name/></subject>
                    <text_part.local_user.new_user_email_text/>
                    <html_part.local_user.new_user_email_html/>
                </n.send>
            </n.new_email.>
        </n.loop.>
    </n.users_in_group.>
</override_macro>
Overrides default macro
... in register.naml
294
295
296
<macro name="after_registration" requires="user">
    <n.comment.>To be overridden</n.comment.>
</macro>