<tal:root define="lt string:&lt;;gt string:&gt;;
                  dummy python:request.RESPONSE.setHeader('Content-Type', 'text/plain;; charset=%s' % here.plone_utils.getSiteEncoding());
                  member python:options['member'];
                  reset python:options.get('reset', None) or here.portal_password_reset.requestReset(member.getId())"
>From: "<span tal:replace="python:here.email_from_name" />" <span tal:replace="structure lt"/><span tal:replace="python:here.email_from_address" /><span tal:replace="structure gt"/>
To: <span tal:replace="python:member.getProperty('email')" />
Subject: <span i18n:domain="plone" i18n:translate="mailtemplate_registered_portal_membership_info" tal:omit-tag="">Portal Membership Information</span>
Content-Type: text/plain; charset=<span tal:replace="here/portal_properties/site_properties/default_charset" />

<div i18n:domain="passwordresettool"
     i18n:translate="mailtemplate_registered_body"
     tal:omit-tag=""
     tal:define="fullname python: test(member.fullname,
                 ' ' + member.fullname, '')">
    Welcome<span i18n:name="fullname" tal:replace="fullname" />,

    You have been registered as a member of <span i18n:name="portal_name" tal:omit-tag="" tal:content="python:here.portal_url.getPortalObject().Title()" />, 
    which allows you to personalize your view of the website and participate in
    the community. Please activate your account by visiting 
    
    <span i18n:name="set_password" tal:replace="python:here.pwreset_constructURL(reset['randomstring'])+'?userid='+member.getUserName()" />
    
    You must activate your account within <span
    i18n:name="expirationtime"
    tal:replace="here/portal_password_reset/getExpirationTimeout" />
    hours, so before <span i18n:name="expirationdate" tal:replace="python:
    context.toLocalizedTime(reset['expires'], long_format=1)" />

</div>
<div i18n:domain="passwordresettool"
     i18n:translate="greetings"
     tal:omit-tag="">
    With kind regards,
</div>

--
<span tal:replace="python:here.email_from_name" />
</tal:root>
