Magento 2: Header & Footer Not Displaying in Contact Us EmailHow can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2: How to change Contact Us Email Type?Magento 2: Header & Footer Not Displaying in EmailMy module not displaying header and footerMagento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 email attachment not working while sending custom email

Flashing the ESP8266 12F from raspberry

Making a Dataset that emulates `ls -tlra`?

What is the function of "mal" in saying "Das nenn ich mal ein X"?

Brute-force the switchboard

Is it possible to target 2 allies with the Warding Bond spell using the Sorcerer's Twinned Spell metamagic option?

How to not confuse readers with simultaneous events?

Masyu-making game

Align the contents of a numerical matrix when you have minus signs

What is the mistake in this solution?

Inscriptio Labyrinthica

How to get a type of "screech" on guitar

Suggestions for how to track down the source of this force:source:push error?

You have no, but can try for yes

Did Hitler say this quote about homeschooling?

"Je suis petite, moi?", purpose of the "moi"?

I want light controlled by one switch, not two

Why did my "seldom" get corrected?

How to belay quickly ascending top-rope climbers?

Why does a tetrahedral molecule like methane have a dipole moment of zero?

Which family is it?

Are there foods that astronauts are explicitly never allowed to eat?

Why do jet engines sound louder on the ground than inside the aircraft?

Discontinuous Tube visualization

Why do space operations use "nominal" to mean "working correctly"?



Magento 2: Header & Footer Not Displaying in Contact Us Email


How can i rewrite TierPrice Block in Magento2magento 2 captcha not rendering if I override layout xmlmain.CRITICAL: Plugin class doesn't existMagento 2 : Problem while adding custom button order view page?Magento 2: How to change Contact Us Email Type?Magento 2: Header & Footer Not Displaying in EmailMy module not displaying header and footerMagento 2.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 email attachment not working while sending custom email






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








1















I have created custom module and override contact-us email template. Also, I have changed contact us email type and set html. It's working perfectly. But the problem is when I received email, email header and footer are missing. Logo is not displayed.



Magento version 2.1.7



Here is my code.



module.xml should be [Vendor/RewriteContact/etc/module.xml]



<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vendor_RewriteContact" setup_version="2.0.0">
<sequence>
<module name="Magento_Contact"/>
</sequence>
</module> </config>


email_templates.xml should be [Vendor/RewriteContact/etc/email_templates.xml]



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="contact_email_email_template" label="Contact Form" file="submitted_form.html" type="html" module="Vendor_RewriteContact" area="frontend"/>
</config>


submitted_form.html should be [Vendor/RewriteContact/view/frontend/email/submitted_form.html]



<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<!--@subject trans "Contact Form" @-->
<!--@vars
"var data.comment":"Comment",
"var data.email":"Sender Email",
"var data.name":"Sender Name",
"var data.telephone":"Sender Telephone",
"template config_path="design/email/footer_template"":"Email Footer Template",
"template config_path="design/email/header_template"":"Email Header Template"
@-->
template config_path="design/email/header_template"
trans "Name: %name" name=$data.name
trans "Email: %email" email=$data.email
trans "Phone Number: %telephone" telephone=$data.telephone

trans "Comment: %comment" comment=$data.comment
template config_path="design/email/footer_template"









share|improve this question
























  • did you run all this commands in order??. php bin/magento setup:upgrade, php bin/magento setup:di:compile, php bin/magento setup:static-content:deploy, php bin/magento indexer:reindex, php bin/magento cache:flush

    – Abhishek Panchal
    Sep 12 '17 at 14:29











  • Yes, I have run all command

    – Vithal Bariya
    Sep 12 '17 at 14:32











  • Hi @Vishal Bariya, did you find solution of you problem. I am also facing the same problem.

    – Mohit Kumar Arora
    Sep 14 '17 at 13:33











  • Hi @Mohit Kumar Arora, I have try many But can't find solution.

    – Vithal Bariya
    Sep 18 '17 at 4:32

















1















I have created custom module and override contact-us email template. Also, I have changed contact us email type and set html. It's working perfectly. But the problem is when I received email, email header and footer are missing. Logo is not displayed.



Magento version 2.1.7



Here is my code.



module.xml should be [Vendor/RewriteContact/etc/module.xml]



<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vendor_RewriteContact" setup_version="2.0.0">
<sequence>
<module name="Magento_Contact"/>
</sequence>
</module> </config>


email_templates.xml should be [Vendor/RewriteContact/etc/email_templates.xml]



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="contact_email_email_template" label="Contact Form" file="submitted_form.html" type="html" module="Vendor_RewriteContact" area="frontend"/>
</config>


submitted_form.html should be [Vendor/RewriteContact/view/frontend/email/submitted_form.html]



<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<!--@subject trans "Contact Form" @-->
<!--@vars
"var data.comment":"Comment",
"var data.email":"Sender Email",
"var data.name":"Sender Name",
"var data.telephone":"Sender Telephone",
"template config_path="design/email/footer_template"":"Email Footer Template",
"template config_path="design/email/header_template"":"Email Header Template"
@-->
template config_path="design/email/header_template"
trans "Name: %name" name=$data.name
trans "Email: %email" email=$data.email
trans "Phone Number: %telephone" telephone=$data.telephone

trans "Comment: %comment" comment=$data.comment
template config_path="design/email/footer_template"









share|improve this question
























  • did you run all this commands in order??. php bin/magento setup:upgrade, php bin/magento setup:di:compile, php bin/magento setup:static-content:deploy, php bin/magento indexer:reindex, php bin/magento cache:flush

    – Abhishek Panchal
    Sep 12 '17 at 14:29











  • Yes, I have run all command

    – Vithal Bariya
    Sep 12 '17 at 14:32











  • Hi @Vishal Bariya, did you find solution of you problem. I am also facing the same problem.

    – Mohit Kumar Arora
    Sep 14 '17 at 13:33











  • Hi @Mohit Kumar Arora, I have try many But can't find solution.

    – Vithal Bariya
    Sep 18 '17 at 4:32













1












1








1


1






I have created custom module and override contact-us email template. Also, I have changed contact us email type and set html. It's working perfectly. But the problem is when I received email, email header and footer are missing. Logo is not displayed.



Magento version 2.1.7



Here is my code.



module.xml should be [Vendor/RewriteContact/etc/module.xml]



<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vendor_RewriteContact" setup_version="2.0.0">
<sequence>
<module name="Magento_Contact"/>
</sequence>
</module> </config>


email_templates.xml should be [Vendor/RewriteContact/etc/email_templates.xml]



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="contact_email_email_template" label="Contact Form" file="submitted_form.html" type="html" module="Vendor_RewriteContact" area="frontend"/>
</config>


submitted_form.html should be [Vendor/RewriteContact/view/frontend/email/submitted_form.html]



<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<!--@subject trans "Contact Form" @-->
<!--@vars
"var data.comment":"Comment",
"var data.email":"Sender Email",
"var data.name":"Sender Name",
"var data.telephone":"Sender Telephone",
"template config_path="design/email/footer_template"":"Email Footer Template",
"template config_path="design/email/header_template"":"Email Header Template"
@-->
template config_path="design/email/header_template"
trans "Name: %name" name=$data.name
trans "Email: %email" email=$data.email
trans "Phone Number: %telephone" telephone=$data.telephone

trans "Comment: %comment" comment=$data.comment
template config_path="design/email/footer_template"









share|improve this question
















I have created custom module and override contact-us email template. Also, I have changed contact us email type and set html. It's working perfectly. But the problem is when I received email, email header and footer are missing. Logo is not displayed.



Magento version 2.1.7



Here is my code.



module.xml should be [Vendor/RewriteContact/etc/module.xml]



<?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Vendor_RewriteContact" setup_version="2.0.0">
<sequence>
<module name="Magento_Contact"/>
</sequence>
</module> </config>


email_templates.xml should be [Vendor/RewriteContact/etc/email_templates.xml]



<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Email:etc/email_templates.xsd">
<template id="contact_email_email_template" label="Contact Form" file="submitted_form.html" type="html" module="Vendor_RewriteContact" area="frontend"/>
</config>


submitted_form.html should be [Vendor/RewriteContact/view/frontend/email/submitted_form.html]



<!--
/**
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/
-->
<!--@subject trans "Contact Form" @-->
<!--@vars
"var data.comment":"Comment",
"var data.email":"Sender Email",
"var data.name":"Sender Name",
"var data.telephone":"Sender Telephone",
"template config_path="design/email/footer_template"":"Email Footer Template",
"template config_path="design/email/header_template"":"Email Header Template"
@-->
template config_path="design/email/header_template"
trans "Name: %name" name=$data.name
trans "Email: %email" email=$data.email
trans "Phone Number: %telephone" telephone=$data.telephone

trans "Comment: %comment" comment=$data.comment
template config_path="design/email/footer_template"






magento2 magento-2.1.7






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Sep 12 '17 at 15:42









Mohit Kumar Arora

7,3815 gold badges17 silver badges36 bronze badges




7,3815 gold badges17 silver badges36 bronze badges










asked Sep 12 '17 at 14:22









Vithal BariyaVithal Bariya

4742 silver badges17 bronze badges




4742 silver badges17 bronze badges












  • did you run all this commands in order??. php bin/magento setup:upgrade, php bin/magento setup:di:compile, php bin/magento setup:static-content:deploy, php bin/magento indexer:reindex, php bin/magento cache:flush

    – Abhishek Panchal
    Sep 12 '17 at 14:29











  • Yes, I have run all command

    – Vithal Bariya
    Sep 12 '17 at 14:32











  • Hi @Vishal Bariya, did you find solution of you problem. I am also facing the same problem.

    – Mohit Kumar Arora
    Sep 14 '17 at 13:33











  • Hi @Mohit Kumar Arora, I have try many But can't find solution.

    – Vithal Bariya
    Sep 18 '17 at 4:32

















  • did you run all this commands in order??. php bin/magento setup:upgrade, php bin/magento setup:di:compile, php bin/magento setup:static-content:deploy, php bin/magento indexer:reindex, php bin/magento cache:flush

    – Abhishek Panchal
    Sep 12 '17 at 14:29











  • Yes, I have run all command

    – Vithal Bariya
    Sep 12 '17 at 14:32











  • Hi @Vishal Bariya, did you find solution of you problem. I am also facing the same problem.

    – Mohit Kumar Arora
    Sep 14 '17 at 13:33











  • Hi @Mohit Kumar Arora, I have try many But can't find solution.

    – Vithal Bariya
    Sep 18 '17 at 4:32
















did you run all this commands in order??. php bin/magento setup:upgrade, php bin/magento setup:di:compile, php bin/magento setup:static-content:deploy, php bin/magento indexer:reindex, php bin/magento cache:flush

– Abhishek Panchal
Sep 12 '17 at 14:29





did you run all this commands in order??. php bin/magento setup:upgrade, php bin/magento setup:di:compile, php bin/magento setup:static-content:deploy, php bin/magento indexer:reindex, php bin/magento cache:flush

– Abhishek Panchal
Sep 12 '17 at 14:29













Yes, I have run all command

– Vithal Bariya
Sep 12 '17 at 14:32





Yes, I have run all command

– Vithal Bariya
Sep 12 '17 at 14:32













Hi @Vishal Bariya, did you find solution of you problem. I am also facing the same problem.

– Mohit Kumar Arora
Sep 14 '17 at 13:33





Hi @Vishal Bariya, did you find solution of you problem. I am also facing the same problem.

– Mohit Kumar Arora
Sep 14 '17 at 13:33













Hi @Mohit Kumar Arora, I have try many But can't find solution.

– Vithal Bariya
Sep 18 '17 at 4:32





Hi @Mohit Kumar Arora, I have try many But can't find solution.

– Vithal Bariya
Sep 18 '17 at 4:32










1 Answer
1






active

oldest

votes


















0














Although this is not a proper solution; after too much debugging, I fixed the issue by the below process:



  • Create a new template for Contact Us email from Marketing > Email Templates.

  • Check the preview of the template and open page source of the template preview page.

  • Copy HTML source of the portion in which email template content is being shown.

  • Put the copied source into email template and replace the dynamic content with respective variables again.

  • Save the template and apply it from Stores > Configuration > General (Contacts) > Email Options.

Now try it from the frontend. I hope it would help you also.






share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f192948%2fmagento-2-header-footer-not-displaying-in-contact-us-email%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    Although this is not a proper solution; after too much debugging, I fixed the issue by the below process:



    • Create a new template for Contact Us email from Marketing > Email Templates.

    • Check the preview of the template and open page source of the template preview page.

    • Copy HTML source of the portion in which email template content is being shown.

    • Put the copied source into email template and replace the dynamic content with respective variables again.

    • Save the template and apply it from Stores > Configuration > General (Contacts) > Email Options.

    Now try it from the frontend. I hope it would help you also.






    share|improve this answer



























      0














      Although this is not a proper solution; after too much debugging, I fixed the issue by the below process:



      • Create a new template for Contact Us email from Marketing > Email Templates.

      • Check the preview of the template and open page source of the template preview page.

      • Copy HTML source of the portion in which email template content is being shown.

      • Put the copied source into email template and replace the dynamic content with respective variables again.

      • Save the template and apply it from Stores > Configuration > General (Contacts) > Email Options.

      Now try it from the frontend. I hope it would help you also.






      share|improve this answer

























        0












        0








        0







        Although this is not a proper solution; after too much debugging, I fixed the issue by the below process:



        • Create a new template for Contact Us email from Marketing > Email Templates.

        • Check the preview of the template and open page source of the template preview page.

        • Copy HTML source of the portion in which email template content is being shown.

        • Put the copied source into email template and replace the dynamic content with respective variables again.

        • Save the template and apply it from Stores > Configuration > General (Contacts) > Email Options.

        Now try it from the frontend. I hope it would help you also.






        share|improve this answer













        Although this is not a proper solution; after too much debugging, I fixed the issue by the below process:



        • Create a new template for Contact Us email from Marketing > Email Templates.

        • Check the preview of the template and open page source of the template preview page.

        • Copy HTML source of the portion in which email template content is being shown.

        • Put the copied source into email template and replace the dynamic content with respective variables again.

        • Save the template and apply it from Stores > Configuration > General (Contacts) > Email Options.

        Now try it from the frontend. I hope it would help you also.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 19 '17 at 14:57









        Mohit Kumar AroraMohit Kumar Arora

        7,3815 gold badges17 silver badges36 bronze badges




        7,3815 gold badges17 silver badges36 bronze badges



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmagento.stackexchange.com%2fquestions%2f192948%2fmagento-2-header-footer-not-displaying-in-contact-us-email%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Grendel Contents Story Scholarship Depictions Notes References Navigation menu10.1093/notesj/gjn112Berserkeree

            Area configuration aggregation error after install Porto themeMagento 2.1 CE Installed but front/backend not loading/workingCSS not loading on page within Magento 2 pageCannot install module in Magento 2no commands defined in the “setup” namespace. in Magento2Magento 2: Static files are present but shows 404Why do i have to always run the commands to clean cache in Magento 2.1.8?Failure reason: 'Unable to unserialize value.'Error 500 after magento migrationIn production mode the site does not loadMagento 2 : Error 500 after installing

            Middle Expansion Olielle Resaix Definition: Uttering songs of triumph shouting with joy triumphant exulting Sejunction Journal 붙다 달 고급 품목 외출 The stretch trades the screeching tin. Definition: The act of speaking with a drawl a drawl Cough Sand Definition: An uproar a quarrel a noisy outbreak Shake Iron Publicize Horse House Baby 사과 Resaix Flaggy Jelly Temporary Unequaled Puppet A drop in the bucket Shrew 성격 회원 성질 미팅 The burn frames the tacky quality. Materialistic The smoke reduces the way. Yammoe Nondescript Cheek 얼굴 배 약하다 날리다 타다 The illegal country shows the iron. Help Rule Drearien Smoke Teaching Meaty Wasp Abraham Lincoln Jaws 진심 수리하다 Size Cork Idea Convert Think Lark John Lennon 거울 청소 군 추천하다 아이스크림