sancho mails: enabled removing of header/footer and custom header/footer images in code igniter code, legacy code: global ids for images are created only if config is set

This commit is contained in:
Alexei Karpenko
2025-01-15 16:52:11 +01:00
parent 13d86edcfc
commit ece4f4a8b5
3 changed files with 55 additions and 15 deletions
+6 -4
View File
@@ -47,6 +47,8 @@ function sendSanchoMail($vorlage_kurzbz, $vorlage_data, $to, $subject, $headerIm
$footer_image_path_prefix = dirname(__FILE__). '/../skin/images/sancho/';
$sanchoHeader_img = '';
$sanchoFooter_img = '';
$cid_header = '';
$cid_footer = '';
if (!defined('CUSTOM_MAIL_USE_IMAGES') || CUSTOM_MAIL_USE_IMAGES)
{
@@ -83,11 +85,11 @@ function sendSanchoMail($vorlage_kurzbz, $vorlage_data, $to, $subject, $headerIm
// set full image path
$sanchoFooter_img = $footer_image_path_prefix.$sanchoFooter_img;
}
}
// Set unique content id for embedding header and footer image
$cid_header = uniqid();
$cid_footer = uniqid();
// Set unique content id for embedding header and footer image
$cid_header = uniqid();
$cid_footer = uniqid();
}
// Set specific mail content into specific content template
$content = parseMailContent($vorlage_kurzbz, $vorlage_data);