Details
-
Bug
-
Resolution: Fixed
-
Medium
-
4.0.3, 4.1.0
-
None
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.