Re: Disable reply by email

Posted by Pedro on
URL: https://support.nabble.com/Disable-reply-by-email-tp7560396p7572560.html

Hi,
1- At the bottom of your app->See how NAML generates this page.
2- At the engine wheel -> "go to advanced editor" .
3-Paste this Code in your tweaks:
<override_macro name="post by email" requires="post_by_email" unindent="true">
    <n.send_failure_mail. from="Your Forum's Name">
        Sorry, but you can't post new messages by email to the "Your Forum's Name". 
        Please post your message directly on the website:
        "Your Forum's Link"
    </n.send_failure_mail.>
</override_macro>
<override_macro name="menu_post_by_email" requires="node">
</override_macro>
<override_macro name="send_subscription_email" parameters="node_attr,text_part,html_part" requires="subscription">
    <n.set_local_subscription.this_subscription/>
    <n.set_local_node.node_attr/>
    <n.block.>
        <n.new_email.>
            <n.send>
                <to.local_subscription.user.user_email/>
                <to_name.local_subscription.user.name/>                
                <from_name><n.local_node.owner.name/> [via <n.root_node.subject/>]</from_name>
                <subject.local_node.subject/>
                <text_part.text_part/>
                <html_part.html_part/>
                <set_headers_for.local_node/>
                <bounce_to.local_subscription.user.bounces_address/>
            </n.send>
        </n.new_email.>
    </n.block.>
</override_macro>
see the lines 2, 3 and 5. Replace with your forum's name and address. Please, try to reply a topic using your email to see and understad what happens.
My test forum.