I created a custom form to allow people to ask a catalog, the form works, but when I try to send a mail confirmation to the customer with the catalog link, I see the html tag on the mail.

enter image description here

How fix that ?

$message_customer = __('Votre demande de catalogue a bien été prise en compte. Vous pouvez visualiser votre catalogue <a target="_blank" href="%1%2">ici</a>.',

and the template is

        <td colspan="6" valign="top" style="font-size:12px;padding:7px 9px 9px 9px;border:1px solid #EAEAEA;">
            {{var message_customer}}

1 Answer 1


You can use it like this in you email template file

<a href={{var yourUrl}} target="__blank"> Test </a>

Hope it Helps.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.