leafface Posted April 24, 2016 Share Posted April 24, 2016 Hi,The site's email logo (uploaded to "Invoice and Email Logos") gets attached to the emails created and sent with Prestashop, regardless the content of the mail. How to disable this attachment? Thanks. Link to comment Share on other sites More sharing options...
shokinro Posted April 24, 2016 Share Posted April 24, 2016 please try to comment out following lines in file /classes/Mail.php /* don't attach the logo as */ if (isset($logo)) { $template_vars['{shop_logo}'] = $message->embed(Swift_Image::fromPath($logo)); } 2 Link to comment Share on other sites More sharing options...
leafface Posted April 24, 2016 Author Share Posted April 24, 2016 Great, it worked. Thank you. Link to comment Share on other sites More sharing options...
shokinro Posted April 24, 2016 Share Posted April 24, 2016 my pleasure, glad it worked and thanks for feedback. Link to comment Share on other sites More sharing options...
sharkooon Posted January 8, 2018 Share Posted January 8, 2018 It works, but its bad to edit core files for that. no way to override Mail class because its a HUGE function. Link to comment Share on other sites More sharing options...
movinq Posted February 8, 2021 Share Posted February 8, 2021 I want to reply here instead of creating my own thread. I want to remove the logo attachment from my emails as I think it looks unprofessional. I have tried all the solutions I found about commenting out code or editing in mail.php however none of them work. All of them cause the back office to hit an error and ask me to check in debug mode. After I restore the mail.php everything works again. I'm running 1.7 and wondering if there are any other known solutions to this? Can provide further details if required. Link to comment Share on other sites More sharing options...
boiledfrog Posted March 20, 2021 Share Posted March 20, 2021 On 2/8/2021 at 2:46 AM, movinq said: I want to reply here instead of creating my own thread. I want to remove the logo attachment from my emails as I think it looks unprofessional. I have tried all the solutions I found about commenting out code or editing in mail.php however none of them work. All of them cause the back office to hit an error and ask me to check in debug mode. After I restore the mail.php everything works again. I'm running 1.7 and wondering if there are any other known solutions to this? Can provide further details if required. im having the same issues, they just want to brand the powered by xxx everywhere,and it is very hard to remove it so pissed and i want to change platform Link to comment Share on other sites More sharing options...
ComGrafPL Posted March 19, 2022 Share Posted March 19, 2022 Any fix on that in 1.7.8? Removing the code above, fixing the attachment issue, but in the same time removing the logo from the top of each email. Link to comment Share on other sites More sharing options...
ValWeib Posted January 5, 2024 Share Posted January 5, 2024 Hello, I have the same issue on my PS 1.7, did any fix came up since 2022 ? I can't find any other topic about this 1.7 issue. The fix removes the attachment and the logo on the top of the mails Thanks ! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now