<tal:root define="lt string:&lt;;gt string:&gt;;
                  member python:options['member'];
                  portal_state context/@@plone_portal_state;
                  view context/@@passwordreset_view;
                  isAnon context/@@plone_portal_state/anonymous;
                  reset python:options['reset']"
>From: <span tal:replace="structure view/encoded_mail_sender" />
To: <span tal:replace="python:member.getProperty('email')" />
Subject: <span tal:replace="view/mail_password_subject" />
Content-Type: text/html
Precedence: bulk

<p i18n:domain="passwordresettool"
     i18n:translate="mailtemplate_reset_information"
     tal:condition="not:isAnon">
The site administrator asks you to reset your password for '<span i18n:name="userid"
          tal:content="member/id" />' userid. Your old password doesn't work anymore.
</p>

<p i18n:domain="passwordresettool"
     i18n:translate="mailtemplate_text_linkreset"
     tal:define="fullname python: test(member.fullname,
                 ' %s'%member.fullname, '')">
The following link will take you to a page where you can reset your password for <span i18n:name="site_name"
          tal:omit-tag=""
          tal:content="portal_state/navigation_root_title" /> site:

<a href="${portal_state/portal_url}/@@secure-login?pwreset=true&code=${reset/randomstring}&userid=${member/id}">
  ${portal_state/portal_url}/@@secure-login?pwreset=true&code=${reset/randomstring}&userid=${member/id}
</a>

</p>

<p i18n:domain="passwordresettool"
     i18n:translate="mailtemplate_text_expirationdate_linkreset"
     >(This link is valid for <span tal:content="here/portal_password_reset/getExpirationTimeout"
          tal:omit-tag=""
          i18n:name="hours" /> hours)
</p>

<p i18n:domain="passwordresettool"
     i18n:translate="mailtemplate_tracking_information"
     tal:condition="isAnon">
If you didn't expect to receive this email, please ignore it. Your password has not been changed.
Request made from IP address <span tal:define="host request/HTTP_X_FORWARDED_FOR|request/REMOTE_ADDR"
          tal:content="host"
          tal:omit-tag=""
          i18n:name="ipaddress" />
</p>

</tal:root>
