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

            Get product attribute by attribute group code in magento 2get product attribute by product attribute group in magento 2Magento 2 Log Bundle Product Data in List Page?How to get all product attribute of a attribute group of Default attribute set?Magento 2.1 Create a filter in the product grid by new attributeMagento 2 : Get Product Attribute values By GroupMagento 2 How to get all existing values for one attributeMagento 2 get custom attribute of a single product inside a pluginMagento 2.3 How to get all the Multi Source Inventory (MSI) locations collection in custom module?Magento2: how to develop rest API to get new productsGet product attribute by attribute group code ( [attribute_group_code] ) in magento 2

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

            Magento 2.3: How do i solve this, Not registered handle, on custom form?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.2.5: Overriding Admin Controller sales/orderMagento 2.2.5: Add, Update and Delete existing products Custom OptionsMagento 2.3 : File Upload issue in UI Component FormMagento2 Not registered handleHow to configured Form Builder Js in my custom magento 2.3.0 module?Magento 2.3. How to create image upload field in an admin form