Jump to content

[Solved] Mail doesen't send picture


fitgura

Recommended Posts

Hi all!

I just configured all the mails in our taste and I want to send a different logo on the header and not the "{shop_logo}"

The usual code in the mails






I try to use this






Of course the mail-logo.jpg is in the same directory as the *mail.html but the system don't send the picture

maybe this is a really basic question but I don't know what could be the problem...

please help me

ps 1.3.1

Link to comment
Share on other sites

In PrestaShop v1.3.1, you will need to put mail-logo.jpg in the img directory, then change line 94 of classes/Mail.php from:

$templateVars['{shop_logo}'] = (file_exists(_PS_IMG_DIR_.'logo.jpg')) ? $message->attach(new Swift_Message_Image(new Swift_File(_PS_IMG_DIR_.'logo.jpg'))) : '';



to:

$templateVars['{shop_logo}'] = (file_exists(_PS_IMG_DIR_.'mail-logo.jpg')) ? $message->attach(new Swift_Message_Image(new Swift_File(_PS_IMG_DIR_.'logo.jpg'))) : '';



PrestaShop v1.4 lets you upload a different logo for the website and emails from the Back Office.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...