Magento 2 Order / Shipment Emails From Address Suddenly Apache / apache@localhostUse my domain for sales emails instead of my hosting domainIncorrect Email send from addressMagento not sending shipment emails - other emails workingRemoving apache@localhost from my email header?Modify the From address of the Contacts emailMagento not sending order confirmation emails to adminGetting order/invoice emails when paying with paypalMagento Shipment Email Confirmation Being Sent TwiceMagento 2.1.6 No confirmation emails sent from frontendOrder confirmation emails not sendingSales Emails going via wrong email address magento 2.2.x

Can any NP-Complete Problem be solved using at most polynomial space (but while using exponential time?)

Should I prioritize my 401k over my student loans?

Output of "$OSTYPE:6" on old releases of Mac OS X

Dates on degrees don’t make sense – will people care?

How to get cool night-vision without lame drawbacks?

Is it illegal to withhold someone's passport and green card in California?

Inaccessible base class despite friendship

"How can you guarantee that you won't change/quit job after just couple of months?" How to respond?

Explain why a line can never intersect a plane in exactly two points.

What does the hyphen "-" mean in "tar xzf -"?

Can you find x?

Why use cross notes in sheet music for hip hop tracks?

How do I turn off a repeating trade?

Employer wants to use my work email account after I quit

How long would it take to cross the Channel in 1890's?

What is the origin of Scooby-Doo's name?

How to make clear to people I don't want to answer their "Where are you from?" question?

Array initialization optimization

Old sci-fi story: radiation mutated the animals, a boy loses a limb, but it's okay because "humans used to do great with only two arms"

Unusual mail headers, evidence of an attempted attack. Have I been pwned?

What's currently blocking the construction of the wall between Mexico and the US?

Loss of power when I remove item from the outlet

Understanding the reasoning of the woman who agreed with King Solomon to "cut the baby in half"

What is "industrial ethernet"?



Magento 2 Order / Shipment Emails From Address Suddenly Apache / apache@localhost


Use my domain for sales emails instead of my hosting domainIncorrect Email send from addressMagento not sending shipment emails - other emails workingRemoving apache@localhost from my email header?Modify the From address of the Contacts emailMagento not sending order confirmation emails to adminGetting order/invoice emails when paying with paypalMagento Shipment Email Confirmation Being Sent TwiceMagento 2.1.6 No confirmation emails sent from frontendOrder confirmation emails not sendingSales Emails going via wrong email address magento 2.2.x






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








0















I have recently updated to 2.2.4 and made a few minor changes however have just noticed that order emails are now sending with the wrong from address and is not set as per settings in Store -> Configuration -> General -> Store Email Addresses as I believe normally sets this.



Header shows like below:



From: Apache <apache@server.co.uk>
Return-Path: apache@server.co.uk


However previous headers and the current live site set this correctly and am unsure why this has suddenly started. Emails sent from forgotten passwords works fine and from what I can tell this is only effecting the order and shipment emails.



I have tried debugged this through about a maze of files all the way down to MagentoFrameworkMailTemplateTransportBuilderByStore and everything seems fine back to there.



The $this->message->setFrom($result['email'], $result['name']); seems to be correct and $result['email'] and $result['name'] are correct at this stage however the from address is not set.



$this->message uses the magentoFrameworkMailMessage class which just extends Zend_Mail for the setting of the from address so am unsure what could go wrong at this stage considering the variables sent to the function look fine.



Forgotten password however does not seem to use the TransportBuilderByStore so will try and figure out what is different for forgotten password emails.



I can see a similar issue here: https://github.com/magento/magento2/issues/6146 however this is very old. Has anyone else had an issue with this recently since updating? Why would this go wrong and how can I fix?



For now my best bet is just setting the from address via vhosts for each of the multi stores like below however would like to find out why this is happening?



php_admin_value sendmail_path "/usr/sbin/sendmail -fsales@domain.co.uk -F 'Sales Department <sales@domain.co.uk>' -t









share|improve this question



















  • 2





    Refer this issue all explanations are there, hope this will help you. github.com/magento/magento2/issues/14952

    – Emipro Technologies Pvt. Ltd.
    May 31 '18 at 11:18












  • Wow swear i've scoured github for this issue and couldn't find. Thanks so much i'll take a read.

    – harri
    May 31 '18 at 11:24











  • @EmiproTechnologiesPvt.Ltd. That was perfect thanks for that all fixed! Hopefully they sort it for 2.2.5

    – harri
    May 31 '18 at 12:27

















0















I have recently updated to 2.2.4 and made a few minor changes however have just noticed that order emails are now sending with the wrong from address and is not set as per settings in Store -> Configuration -> General -> Store Email Addresses as I believe normally sets this.



Header shows like below:



From: Apache <apache@server.co.uk>
Return-Path: apache@server.co.uk


However previous headers and the current live site set this correctly and am unsure why this has suddenly started. Emails sent from forgotten passwords works fine and from what I can tell this is only effecting the order and shipment emails.



I have tried debugged this through about a maze of files all the way down to MagentoFrameworkMailTemplateTransportBuilderByStore and everything seems fine back to there.



The $this->message->setFrom($result['email'], $result['name']); seems to be correct and $result['email'] and $result['name'] are correct at this stage however the from address is not set.



$this->message uses the magentoFrameworkMailMessage class which just extends Zend_Mail for the setting of the from address so am unsure what could go wrong at this stage considering the variables sent to the function look fine.



Forgotten password however does not seem to use the TransportBuilderByStore so will try and figure out what is different for forgotten password emails.



I can see a similar issue here: https://github.com/magento/magento2/issues/6146 however this is very old. Has anyone else had an issue with this recently since updating? Why would this go wrong and how can I fix?



For now my best bet is just setting the from address via vhosts for each of the multi stores like below however would like to find out why this is happening?



php_admin_value sendmail_path "/usr/sbin/sendmail -fsales@domain.co.uk -F 'Sales Department <sales@domain.co.uk>' -t









share|improve this question



















  • 2





    Refer this issue all explanations are there, hope this will help you. github.com/magento/magento2/issues/14952

    – Emipro Technologies Pvt. Ltd.
    May 31 '18 at 11:18












  • Wow swear i've scoured github for this issue and couldn't find. Thanks so much i'll take a read.

    – harri
    May 31 '18 at 11:24











  • @EmiproTechnologiesPvt.Ltd. That was perfect thanks for that all fixed! Hopefully they sort it for 2.2.5

    – harri
    May 31 '18 at 12:27













0












0








0








I have recently updated to 2.2.4 and made a few minor changes however have just noticed that order emails are now sending with the wrong from address and is not set as per settings in Store -> Configuration -> General -> Store Email Addresses as I believe normally sets this.



Header shows like below:



From: Apache <apache@server.co.uk>
Return-Path: apache@server.co.uk


However previous headers and the current live site set this correctly and am unsure why this has suddenly started. Emails sent from forgotten passwords works fine and from what I can tell this is only effecting the order and shipment emails.



I have tried debugged this through about a maze of files all the way down to MagentoFrameworkMailTemplateTransportBuilderByStore and everything seems fine back to there.



The $this->message->setFrom($result['email'], $result['name']); seems to be correct and $result['email'] and $result['name'] are correct at this stage however the from address is not set.



$this->message uses the magentoFrameworkMailMessage class which just extends Zend_Mail for the setting of the from address so am unsure what could go wrong at this stage considering the variables sent to the function look fine.



Forgotten password however does not seem to use the TransportBuilderByStore so will try and figure out what is different for forgotten password emails.



I can see a similar issue here: https://github.com/magento/magento2/issues/6146 however this is very old. Has anyone else had an issue with this recently since updating? Why would this go wrong and how can I fix?



For now my best bet is just setting the from address via vhosts for each of the multi stores like below however would like to find out why this is happening?



php_admin_value sendmail_path "/usr/sbin/sendmail -fsales@domain.co.uk -F 'Sales Department <sales@domain.co.uk>' -t









share|improve this question
















I have recently updated to 2.2.4 and made a few minor changes however have just noticed that order emails are now sending with the wrong from address and is not set as per settings in Store -> Configuration -> General -> Store Email Addresses as I believe normally sets this.



Header shows like below:



From: Apache <apache@server.co.uk>
Return-Path: apache@server.co.uk


However previous headers and the current live site set this correctly and am unsure why this has suddenly started. Emails sent from forgotten passwords works fine and from what I can tell this is only effecting the order and shipment emails.



I have tried debugged this through about a maze of files all the way down to MagentoFrameworkMailTemplateTransportBuilderByStore and everything seems fine back to there.



The $this->message->setFrom($result['email'], $result['name']); seems to be correct and $result['email'] and $result['name'] are correct at this stage however the from address is not set.



$this->message uses the magentoFrameworkMailMessage class which just extends Zend_Mail for the setting of the from address so am unsure what could go wrong at this stage considering the variables sent to the function look fine.



Forgotten password however does not seem to use the TransportBuilderByStore so will try and figure out what is different for forgotten password emails.



I can see a similar issue here: https://github.com/magento/magento2/issues/6146 however this is very old. Has anyone else had an issue with this recently since updating? Why would this go wrong and how can I fix?



For now my best bet is just setting the from address via vhosts for each of the multi stores like below however would like to find out why this is happening?



php_admin_value sendmail_path "/usr/sbin/sendmail -fsales@domain.co.uk -F 'Sales Department <sales@domain.co.uk>' -t






magento2 email






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited May 31 '18 at 11:07







harri

















asked May 30 '18 at 15:20









harriharri

3,16811762




3,16811762







  • 2





    Refer this issue all explanations are there, hope this will help you. github.com/magento/magento2/issues/14952

    – Emipro Technologies Pvt. Ltd.
    May 31 '18 at 11:18












  • Wow swear i've scoured github for this issue and couldn't find. Thanks so much i'll take a read.

    – harri
    May 31 '18 at 11:24











  • @EmiproTechnologiesPvt.Ltd. That was perfect thanks for that all fixed! Hopefully they sort it for 2.2.5

    – harri
    May 31 '18 at 12:27












  • 2





    Refer this issue all explanations are there, hope this will help you. github.com/magento/magento2/issues/14952

    – Emipro Technologies Pvt. Ltd.
    May 31 '18 at 11:18












  • Wow swear i've scoured github for this issue and couldn't find. Thanks so much i'll take a read.

    – harri
    May 31 '18 at 11:24











  • @EmiproTechnologiesPvt.Ltd. That was perfect thanks for that all fixed! Hopefully they sort it for 2.2.5

    – harri
    May 31 '18 at 12:27







2




2





Refer this issue all explanations are there, hope this will help you. github.com/magento/magento2/issues/14952

– Emipro Technologies Pvt. Ltd.
May 31 '18 at 11:18






Refer this issue all explanations are there, hope this will help you. github.com/magento/magento2/issues/14952

– Emipro Technologies Pvt. Ltd.
May 31 '18 at 11:18














Wow swear i've scoured github for this issue and couldn't find. Thanks so much i'll take a read.

– harri
May 31 '18 at 11:24





Wow swear i've scoured github for this issue and couldn't find. Thanks so much i'll take a read.

– harri
May 31 '18 at 11:24













@EmiproTechnologiesPvt.Ltd. That was perfect thanks for that all fixed! Hopefully they sort it for 2.2.5

– harri
May 31 '18 at 12:27





@EmiproTechnologiesPvt.Ltd. That was perfect thanks for that all fixed! Hopefully they sort it for 2.2.5

– harri
May 31 '18 at 12:27










1 Answer
1






active

oldest

votes


















1














You can find solution from magento patch website. Kindly go through and you can fixed this issue



https://support.magento.com/hc/en-us/articles/360024855431-Order-email-sent-from-the-server-email-address



Here is best result






share|improve this answer








New contributor



Gopal Gautam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















    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%2f228099%2fmagento-2-order-shipment-emails-from-address-suddenly-apache-apachelocalhos%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









    1














    You can find solution from magento patch website. Kindly go through and you can fixed this issue



    https://support.magento.com/hc/en-us/articles/360024855431-Order-email-sent-from-the-server-email-address



    Here is best result






    share|improve this answer








    New contributor



    Gopal Gautam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      1














      You can find solution from magento patch website. Kindly go through and you can fixed this issue



      https://support.magento.com/hc/en-us/articles/360024855431-Order-email-sent-from-the-server-email-address



      Here is best result






      share|improve this answer








      New contributor



      Gopal Gautam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





















        1












        1








        1







        You can find solution from magento patch website. Kindly go through and you can fixed this issue



        https://support.magento.com/hc/en-us/articles/360024855431-Order-email-sent-from-the-server-email-address



        Here is best result






        share|improve this answer








        New contributor



        Gopal Gautam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        You can find solution from magento patch website. Kindly go through and you can fixed this issue



        https://support.magento.com/hc/en-us/articles/360024855431-Order-email-sent-from-the-server-email-address



        Here is best result







        share|improve this answer








        New contributor



        Gopal Gautam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.








        share|improve this answer



        share|improve this answer






        New contributor



        Gopal Gautam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.








        answered Jun 13 at 15:10









        Gopal GautamGopal Gautam

        261




        261




        New contributor



        Gopal Gautam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.




        New contributor




        Gopal Gautam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





























            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%2f228099%2fmagento-2-order-shipment-emails-from-address-suddenly-apache-apachelocalhos%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?