View Single Post
  #2  
Old 12-11-2005, 07:54 PM
 
extreme extreme is offline
 

Member
  
Join Date: Jun 2005
Posts: 28
 

Default

Not sure what version that was for but I couldn't find those particular files in 4.0.16. However, it was enough to get me started and I eventually got it working as follows:

Add a template called newsletter_header.tpl in /skin1/mail/html/ (I just cloned my mail_header.tpl as I wanted it basically the same)

Then open modules/news management/news_send.php and edit the following:

Add

Code:
$header_template = "mail/newsletter_header.tpl";

just before

Code:
$signature_template = "mail/newsletter_signature.tpl";

And then add

Code:
$header = func_display($header_template,$smarty,false);

just before

Code:
$signature = func_display($signature_template,$smarty,false);

Add

Code:
$header_template = "mail/html/".basename($header_template);

before

Code:
$signature_template = "mail/html/".basename($signature_template);

and lastly, change

Code:
foreach($recipients as $recipient) { func_send_simple_mail($recipient, $message["subject"], $message["body"].$sign_delim.preg_replace("/$email_spec/", $recipient, $signature), $config["Company"]["newsletter_email"]); }

to

Code:
foreach($recipients as $recipient) { func_send_simple_mail($recipient, $message["subject"], $header.$message["body"].$sign_delim.preg_replace("/$email_spec/", $recipient, $signature), $config["Company"]["newsletter_email"]); }

___________________
X-Cart Gold v. 4.0.16
Reply With Quote