send_password_mail

NAML documentation   Watch a video
   Usages of this macro
... in forgot_password.naml
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<macro name="send_password_mail" requires="user" unindent="true">
    <n.set_local_user
Macro
Parameters: user
.this_user
Binary
Namespace: UserNamespace
Parameters: do
 />
    <n.block
Binary
Namespace: BasicNamespace
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.local_user
Macro
Parameters: do
.user_email
Binary
Namespace: UserNamespace
/>
                <subject><t>Reset your password / <t.location.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.subject
Macro
Requires: node
/></t></subject>
                <text_part>
                    <t
Macro
>Dear user,</t>
 
                    <t>We received a request to reset your password in <t.location.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.subject
Macro
Requires: node
/>.</t>
 
                    <t>If you want to reset your password, click on the link below (or copy and paste the URL into your browser):</t>
                    <n.base_url
Binary
Namespace: NabbleNamespace
/><n.local_user
Macro
Parameters: do
.reset_password_path
Binary
Namespace: UserNamespace
Parameters: q, email
 email="[n.local_user
Macro
Parameters: do
.user_email
Binary
Namespace: UserNamespace
/]" q="[n.local_user
Macro
Parameters: do
.resetcode
Binary
Namespace: UserNamespace
/]" />
 
                    <t>If you don't want to reset your password, please ignore this message. Your password will not be reset.</t>
 
                    <n.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.subject
Macro
Requires: node
/>
                    <n.base_url
Binary
Namespace: NabbleNamespace
/>/
                </text_part>
                <aol_part>
                    <t
Macro
>Dear user,</t>
 
                    <t>We received a request to reset your password in <t.location.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.subject
Macro
Requires: node
/>.</t>
 
                    <t>If you want to reset your password, click on the link below (or copy and paste the URL into your browser):</t>
                    <n.base_url
Binary
Namespace: NabbleNamespace
/><n.local_user
Macro
Parameters: do
.reset_password_path
Binary
Namespace: UserNamespace
Parameters: q, email
 email="[n.local_user
Macro
Parameters: do
.user_email
Binary
Namespace: UserNamespace
/]" q="[n.local_user
Macro
Parameters: do
.resetcode
Binary
Namespace: UserNamespace
/]" />
 
                    <t>If you don't want to reset your password, please ignore this message. Your password will not be reset.</t>
 
                    <n.root_node
Binary
Namespace: NabbleNamespace
Parameters: do
.subject
Macro
Requires: node
/>
                    <n.base_url
Binary
Namespace: NabbleNamespace
/>/
                </aol_part>
            </n.send>
        </n.new_email.>
    </n.block.>
</macro>