<tal:root define="member python:options['member'];
                  portal_state context/@@plone_portal_state;
                  isAnon portal_state/anonymous;
                  reset 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

<tal:doctype tal:replace="structure string:&lt;!DOCTYPE html&gt;" />
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
lang="en"
i18n:domain="plone"
tal:define="portal_state context/@@plone_portal_state;
lang portal_state/language;"
tal:attributes="lang lang;">

<head>
  <style>
    * {
      font-family:Verdana, Geneva, sans-serif;
      line-height: 1.5;
    }

    a,
    a:visited {
      color: #0098d4;
    }

    table {
      border-collapse: collapse;
    }

    table table {
      width: 100%;
    }

    p,
    ul,
    ol {
      margin: 0 0 2em;
    }

    h4 {
      margin: 0 0 2em;
      font-weight: bold;
    }
  </style>
</head>

<body>
  <table width="90%" border="0" cellspacing="0" cellpadding="0" style="margin: 60px auto; max-width: 800px">
    <tbody>
      <tr>
        <td>
          <table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tbody>

              <tr>
                <td colspan="3">

                    <p i18n:translate="mailtemplate_reset_information"
                        tal:condition="not:isAnon">
                    The site administrator asks you to reset your password for '<span i18n:name="userid"
                            tal:omit-tag=""
                            tal:content="member/id" />' userid. Your old password doesn't work anymore.
                    </p>
                    <p i18n:domain="ploneintranet" i18n:translate="mailtemplate_self_reset_information"
                        tal:condition="isAnon">
                    A password reset has been requested for the user '<span i18n:name="userid"
                            tal:omit-tag=""
                            tal:content="member/id" />'.
                    </p>

                    <p i18n:translate="mailtemplate_text_linkreset">
                    The following link will take you to a page where you can reset your password for <tal:i18n i18n:name="site_name"
                            tal:content="here/@@proto/site_title" /> site:

                        <tal:link tal:define="reset_url python:view.construct_url(reset['randomstring'], userid=member.id)">
                            <a href="${reset_url}" tal:content="reset_url" i18n:name="reset_url" />
                        </tal:link>
                    </p>

                    <p>(<tal:i18n i18n:domain="ploneintranet" i18n:translate="admintool_info_expiration">
                    This link is valid until <span tal:replace="python:view.localized_date(reset['expires'])"
                        i18n:name="expiration_date" />.</tal:i18n>)
                    </p>

                    <p
                        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
                      <tal:i18n i18n:name="ipaddress">${request/HTTP_X_FORWARDED_FOR|request/REMOTE_ADDR}</tal:i18n>
                    </p>

                </td>
              </tr>
              <tr>
                <td colspan="3">&nbsp;</td>
              </tr>
            </tbody>
          </table>

        </td>
      </tr>
    </tbody>
  </table>
</body>
</html>
</tal:root>
