Jump to content

[solved] Editing email messages


Recommended Posts

I am editing the email messages in the folders mails.
works fine, just some coding in DW.

Only there are two things i dont quit understand:


1. I want to add a background image. I use the old fashioned background="" in the table, but it does not show (background-image:url..... does not work either)

Of course i use absolute paths to the image on the server, this works fine for the logo (i need another logo in the emailing then in the shop) but not for the background image.


2. This makes me come to the second issee. When I remove the logo tags from the email message in html, the logo is still added as an attachment to the message. How come? Where can remove this.


I hope someone can help me out!
Thanks!

Link to comment
Share on other sites

1. I used background= to add a textured background image instead of a pink bar like this:

Your account login details



It worked for me, but I had to click to enable external content in my email client before the background would appear, so I decided not to do it.

2. It is line 94 of classes/Mail.php that attaches the logo:

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

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...