Magento – Magento 2.1.13 – Add custom link in contact email template

contact-us

I want to add my custom link in contact email link. For that, I have created a new email template for the contact email but this is in plain text.
enter image description here

So how can I add a link to contact email template OR how can I overwrite the contact email template in my custom module/theme?


As per @VivekKumar answer, please check the below image.

enter image description here


As per @Akhilesh answer, I have overwrite the email_template.xml file in my theme as below. Clear the cache – run content deploy but it loads the template in the plain text.

enter image description here

Best Answer

You will need to change the template type to html from text in file

vendor/magento/module-contact/etc/email_templates.xml

Take this file in your theme folder and change from text to html

<template id="contact_email_email_template" label="Contact Form" file="submitted_form.html" type="html" module="Magento_Contact" area="frontend"/>