Magento 2 Default logo on EmailHow do I add a customer's email to the sales invoice?Is it possible to have multiple sales email templates for one site?Some Transactional Email Templates Won't LoadMagento new order email going to customer but no copy sent to meorder_totals in sales email template being wrapped in a tableM 1.9.0.1 - path hints showing in order emailHow to change save path of PDF files in magento 2New Order Confirmation Email Not Being SentOverride model function Magento 2How to change the email template depending on shipping method?

Purpose of cylindrical attachments on Power Transmission towers

Can I get a photo of an Ancient Arrow?

What do you call the action of "describing events as they happen" like sports anchors do?

How (un)safe is it to ride barefoot?

Am I being scammed by a sugar daddy?

Part of my house is inexplicably gone

Print "N NE E SE S SW W NW"

Table with varying step

Must I use my personal social media account for work?

Undocumented incompatibility between changes and siunitx?

Was the Lonely Mountain, where Smaug lived, a volcano?

In Pandemic, why take the extra step of eradicating a disease after you've cured it?

Which are the methodologies for interpreting Vedas?

Must a CPU have a GPU if the motherboard provides a display port (when there isn't any separate video card)?

Why would a home insurer offer a discount based on credit score?

Parsing text written the millitext font

Can I attach a DC blower to intake manifold of my 150CC Yamaha FZS FI engine?

Am I allowed to determine tenets of my contract as a warlock?

How to represent jealousy in a cute way?

Class A Amplifier Design: Emitter Resistance Voltage Drop

New Site Design!

Someone who is granted access to information but not expected to read it

Why would a car salesman tell me not to get my credit pulled again?

Is it true that "only photographers care about noise"?



Magento 2 Default logo on Email


How do I add a customer's email to the sales invoice?Is it possible to have multiple sales email templates for one site?Some Transactional Email Templates Won't LoadMagento new order email going to customer but no copy sent to meorder_totals in sales email template being wrapped in a tableM 1.9.0.1 - path hints showing in order emailHow to change save path of PDF files in magento 2New Order Confirmation Email Not Being SentOverride model function Magento 2How to change the email template depending on shipping method?






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








0















I have create observer which sends the email. The email is working file but the problem is with the logo. I have added the logo for the all email. All the emails including the sales order shows me the new logo which i updated. Only this one doesn't.



Here is my observer code



 $enableEmail = $this->config->getGeneralConfig('email');
$ccEmail = explode(",",$this->config->getGeneralConfig('cc_email'));

$templateOptions = array(
'area' => MagentoFrameworkAppArea::AREA_FRONTEND,
'store' => MagentoStoreModelStore::DEFAULT_STORE_ID,
);

$fileName = "Order #".$orderId.".pdf";
$transport = $this->transportBuilder
->setTemplateIdentifier($template)
->setTemplateOptions
(
$templateOptions
)
->setTemplateVars($content)
->setFrom($sender)
->addTo($email)
->addAttachment($generated_file->render(), $fileName)
->addCc($ccEmail)
->getTransport();
$transport->sendMessage();


Here is the template header which is responsible to show logo.



 template config_path="design/email/header_template"


The above code is there in sales order. But sales order show the correct logo.










share|improve this question

















  • 1





    ->addAttachment is no vanilla magento functionality, maybe the extension you're using is wrong

    – Philipp Sander
    Jun 6 at 9:25











  • have you define ’email_templates.xml ?

    – Amit Bera
    Jun 6 at 9:25











  • @AmitBera Yes..

    – Avesh Naik
    Jun 6 at 9:50











  • @PhilippSander i have commented the statement and checked. Still same problem.

    – Avesh Naik
    Jun 6 at 9:55

















0















I have create observer which sends the email. The email is working file but the problem is with the logo. I have added the logo for the all email. All the emails including the sales order shows me the new logo which i updated. Only this one doesn't.



Here is my observer code



 $enableEmail = $this->config->getGeneralConfig('email');
$ccEmail = explode(",",$this->config->getGeneralConfig('cc_email'));

$templateOptions = array(
'area' => MagentoFrameworkAppArea::AREA_FRONTEND,
'store' => MagentoStoreModelStore::DEFAULT_STORE_ID,
);

$fileName = "Order #".$orderId.".pdf";
$transport = $this->transportBuilder
->setTemplateIdentifier($template)
->setTemplateOptions
(
$templateOptions
)
->setTemplateVars($content)
->setFrom($sender)
->addTo($email)
->addAttachment($generated_file->render(), $fileName)
->addCc($ccEmail)
->getTransport();
$transport->sendMessage();


Here is the template header which is responsible to show logo.



 template config_path="design/email/header_template"


The above code is there in sales order. But sales order show the correct logo.










share|improve this question

















  • 1





    ->addAttachment is no vanilla magento functionality, maybe the extension you're using is wrong

    – Philipp Sander
    Jun 6 at 9:25











  • have you define ’email_templates.xml ?

    – Amit Bera
    Jun 6 at 9:25











  • @AmitBera Yes..

    – Avesh Naik
    Jun 6 at 9:50











  • @PhilippSander i have commented the statement and checked. Still same problem.

    – Avesh Naik
    Jun 6 at 9:55













0












0








0








I have create observer which sends the email. The email is working file but the problem is with the logo. I have added the logo for the all email. All the emails including the sales order shows me the new logo which i updated. Only this one doesn't.



Here is my observer code



 $enableEmail = $this->config->getGeneralConfig('email');
$ccEmail = explode(",",$this->config->getGeneralConfig('cc_email'));

$templateOptions = array(
'area' => MagentoFrameworkAppArea::AREA_FRONTEND,
'store' => MagentoStoreModelStore::DEFAULT_STORE_ID,
);

$fileName = "Order #".$orderId.".pdf";
$transport = $this->transportBuilder
->setTemplateIdentifier($template)
->setTemplateOptions
(
$templateOptions
)
->setTemplateVars($content)
->setFrom($sender)
->addTo($email)
->addAttachment($generated_file->render(), $fileName)
->addCc($ccEmail)
->getTransport();
$transport->sendMessage();


Here is the template header which is responsible to show logo.



 template config_path="design/email/header_template"


The above code is there in sales order. But sales order show the correct logo.










share|improve this question














I have create observer which sends the email. The email is working file but the problem is with the logo. I have added the logo for the all email. All the emails including the sales order shows me the new logo which i updated. Only this one doesn't.



Here is my observer code



 $enableEmail = $this->config->getGeneralConfig('email');
$ccEmail = explode(",",$this->config->getGeneralConfig('cc_email'));

$templateOptions = array(
'area' => MagentoFrameworkAppArea::AREA_FRONTEND,
'store' => MagentoStoreModelStore::DEFAULT_STORE_ID,
);

$fileName = "Order #".$orderId.".pdf";
$transport = $this->transportBuilder
->setTemplateIdentifier($template)
->setTemplateOptions
(
$templateOptions
)
->setTemplateVars($content)
->setFrom($sender)
->addTo($email)
->addAttachment($generated_file->render(), $fileName)
->addCc($ccEmail)
->getTransport();
$transport->sendMessage();


Here is the template header which is responsible to show logo.



 template config_path="design/email/header_template"


The above code is there in sales order. But sales order show the correct logo.







magento2 magento-2.1 email email-templates






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Jun 6 at 9:10









Avesh NaikAvesh Naik

487114




487114







  • 1





    ->addAttachment is no vanilla magento functionality, maybe the extension you're using is wrong

    – Philipp Sander
    Jun 6 at 9:25











  • have you define ’email_templates.xml ?

    – Amit Bera
    Jun 6 at 9:25











  • @AmitBera Yes..

    – Avesh Naik
    Jun 6 at 9:50











  • @PhilippSander i have commented the statement and checked. Still same problem.

    – Avesh Naik
    Jun 6 at 9:55












  • 1





    ->addAttachment is no vanilla magento functionality, maybe the extension you're using is wrong

    – Philipp Sander
    Jun 6 at 9:25











  • have you define ’email_templates.xml ?

    – Amit Bera
    Jun 6 at 9:25











  • @AmitBera Yes..

    – Avesh Naik
    Jun 6 at 9:50











  • @PhilippSander i have commented the statement and checked. Still same problem.

    – Avesh Naik
    Jun 6 at 9:55







1




1





->addAttachment is no vanilla magento functionality, maybe the extension you're using is wrong

– Philipp Sander
Jun 6 at 9:25





->addAttachment is no vanilla magento functionality, maybe the extension you're using is wrong

– Philipp Sander
Jun 6 at 9:25













have you define ’email_templates.xml ?

– Amit Bera
Jun 6 at 9:25





have you define ’email_templates.xml ?

– Amit Bera
Jun 6 at 9:25













@AmitBera Yes..

– Avesh Naik
Jun 6 at 9:50





@AmitBera Yes..

– Avesh Naik
Jun 6 at 9:50













@PhilippSander i have commented the statement and checked. Still same problem.

– Avesh Naik
Jun 6 at 9:55





@PhilippSander i have commented the statement and checked. Still same problem.

– Avesh Naik
Jun 6 at 9:55










1 Answer
1






active

oldest

votes


















0














Go to content -> Design -> Configuration
There is no of record on the basis of theme that are using. go to edit action for all records.
Then slelect the transactional email tabs. there u found logo images. Update this images that u want to display in email headers






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%2f277450%2fmagento-2-default-logo-on-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














    Go to content -> Design -> Configuration
    There is no of record on the basis of theme that are using. go to edit action for all records.
    Then slelect the transactional email tabs. there u found logo images. Update this images that u want to display in email headers






    share|improve this answer



























      0














      Go to content -> Design -> Configuration
      There is no of record on the basis of theme that are using. go to edit action for all records.
      Then slelect the transactional email tabs. there u found logo images. Update this images that u want to display in email headers






      share|improve this answer

























        0












        0








        0







        Go to content -> Design -> Configuration
        There is no of record on the basis of theme that are using. go to edit action for all records.
        Then slelect the transactional email tabs. there u found logo images. Update this images that u want to display in email headers






        share|improve this answer













        Go to content -> Design -> Configuration
        There is no of record on the basis of theme that are using. go to edit action for all records.
        Then slelect the transactional email tabs. there u found logo images. Update this images that u want to display in email headers







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jun 6 at 12:50









        Shekhar SumanShekhar Suman

        177115




        177115



























            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%2f277450%2fmagento-2-default-logo-on-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

            Category:9 (number) SubcategoriesMedia in category "9 (number)"Navigation menuUpload mediaGND ID: 4485639-8Library of Congress authority ID: sh85091979ReasonatorScholiaStatistics

            Circuit construction for execution of conditional statements using least significant bitHow are two different registers being used as “control”?How exactly is the stated composite state of the two registers being produced using the $R_zz$ controlled rotations?Efficiently performing controlled rotations in HHLWould this quantum algorithm implementation work?How to prepare a superposed states of odd integers from $1$ to $sqrtN$?Why is this implementation of the order finding algorithm not working?Circuit construction for Hamiltonian simulationHow can I invert the least significant bit of a certain term of a superposed state?Implementing an oracleImplementing a controlled sum operation

            Magento 2 “No Payment Methods” in Admin New OrderHow to integrate Paypal Express Checkout with the Magento APIMagento 1.5 - Sales > Order > edit order and shipping methods disappearAuto Invoice Check/Money Order Payment methodAdd more simple payment methods?Shipping methods not showingWhat should I do to change payment methods if changing the configuration has no effects?1.9 - No Payment Methods showing upMy Payment Methods not Showing for downloadable/virtual product when checkout?Magento2 API to access internal payment methodHow to call an existing payment methods in the registration form?