View Single Post
  #2  
Old 09-03-2006, 11:01 PM
 
cotc2001 cotc2001 is offline
 

X-Man
  
Join Date: Feb 2003
Location: Shrewsbury, UK
Posts: 2,351
 

Default Re: images in confirmation emails as links not attachments

Sorry to reply to my own post but x-cart provided me with a fix and so for the benefit of others here it is.

in include/func.php find this code

Code:
if($config["Email"]["html_mail"] == "Y") { list($mail_message, $tmp) = func_attach_images($mail_message); if(!empty($tmp)) { foreach($tmp as $k => $v) $files[] = $v; } }

and replace with

Code:
/* if($config["Email"]["html_mail"] == "Y") { list($mail_message, $tmp) = func_attach_images($mail_message); if(!empty($tmp)) { foreach($tmp as $k => $v) $files[] = $v; } } */

so basicilly you have just commented out that section of code in include/func.php

and then in skin1/mail/html replace all
Code:
{$ImagesDir}
with
Code:
{$http_location}/skin1/images/
or if you are using https in the section where invoices are shown on your x-cart site
Code:
{$https_location}/skin1/images/

the easiest way is just to do a search and replace in dreamweaver on the whole skin1/mail/html/ folder

and it should all work fine now without the emails having logos etc as attachments
__________________
x-cart 4.0.5 (live and heavily modded)
Server: freebsd
Reply With Quote