Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-14727

forgot password mail: problem with html mails

    XMLWordPrintable

Details

    Description

      Hi,

      I am using the html mail feature at one site.

      I've a mail header and a mail footer file which I include at the top and the end of every ez mail template.

      In my header and footer files are images which have absolute paths and a hostname.

      I am doing this:

      {def $hostname=ezsys( 'hostname' )}

      <img src="http://{$hostname}

      {'header.jpg'|ezimage('no')}" width="632" height="202" alt="" title="" border="0" />

      This works fine with every mail template in ez except the forgotpassword mail.
      {'header.jpg'|ezimage('no')}

      is always extended with the hostname.

      So the result in the forgotpasswordmail is:
      src="http://www.mysite.comhttp://www.mysite.com..."

      The reason are these lines in forgotpassword.php:

      $http->UseFullUrl = true;
      $templateResult = $tpl->fetch( 'design:user/forgotpasswordmail.tpl' );
      $http->UseFullUrl = false;

      This would be a very good idea, if it would be used in every program which is sending emails.

      So please
      a) Introduce this feature in every program which is sending out mails or
      b) Remove this feature from forgotpassword.php

      Best wishes,
      Georg.

      Attachments

        Activity

          People

            gl gl
            emil.webber emil.webber
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: