templates/de/emails/guest/.htaccess -text svneol=unset#text/plain
templates/de/emails/guest/guest_request_confirm.tpl -text svneol=unset#text/plain
templates/de/emails/header.tpl -text svneol=unset#text/plain
+templates/de/emails/html_header.tpl svneol=native#text/plain
templates/de/emails/lock-user.tpl -text svneol=unset#text/plain
templates/de/emails/lock_sponsor.tpl -text svneol=unset#text/plain
templates/de/emails/member/.htaccess -text svneol=unset#text/plain
addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_links` ADD `bonus_id` BIGINT(20) UNSIGNED NOT NULL DEFAULT 0");
addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_user_links` ADD INDEX (`bonus_id`)");
- // Run this SQL when html or html_mail extension is installed
+ // Run this SQL when html_mail extension is installed
if (isExtensionActive('html_mail')) addExtensionSql("ALTER TABLE `{?_MYSQL_PREFIX?}_bonus` ADD `html_msg` ENUM('Y','N') NOT NULL DEFAULT 'N'");
break;
// Check for PHPMailer or debug-mode
if ((!checkPhpMailerUsage()) || (isDebugModeEnabled())) {
+ // Prefix is '' for text mails
+ $prefix = '';
+
+ // Is HTML?
+ if ($isHTML == 'Y') {
+ // Set prefix
+ $prefix = 'html_';
+ } // END - if
+
// Not in PHPMailer-Mode
if (empty($mailHeader)) {
// Load email header template
- $mailHeader = loadEmailTemplate('header');
+ $mailHeader = loadEmailTemplate($prefix . 'header');
} else {
// Append header
- $mailHeader .= loadEmailTemplate('header');
+ $mailHeader .= loadEmailTemplate($prefix . 'header');
}
} // END - if
// This is always fine
return true;
- } elseif (($isHtml == 'Y') && (isExtensionActive('html_mail'))) {
- // Send mail as HTML away
- return sendHtmlEmail($toEmail, $subject, $message, $mailHeader);
} elseif (!empty($toEmail)) {
// Send Mail away
return sendRawEmail($toEmail, $subject, $message, $mailHeader);
'ADMIN_SEND_BONUS_NORMAL' => "Text-Mail versenden",
'ADMIN_SEND_BONUS_HTML' => "HTML-Mail versenden",
'ADMIN_SEND_BONUS_NORMAL_NOTES' => "Standart Text-Mail an Ihre Mitglieder aussenden.",
- 'ADMIN_SEND_BONUS_HTML_NOTES' => "HTML-Mail an Ihre Mitglieder versenden. Dazu muss die Erweiterung html_mail jedoch installiert sein.",
+ 'ADMIN_SEND_BONUS_HTML_NOTES' => "HTML-Mail an Ihre Mitglieder versenden. Dazu muss die Erweiterung <span class=\"data\">html_mail</span> jedoch installiert sein.",
'ADMIN_BONUS_ORDER_BONUS' => "Bonus für eine Mailbuchung",
'ADMIN_BONUS_REFERAL_BONUS' => "Bonus für das Werben eines weiteren Mitgliedes",
- 'ADMIN_BONUS_STATS_BONUS' => "Einmalige Bonus bei Erreichen von 100% Klickrate auf eine Mailbuchung (=<div class=\"tiny\">Statistik-Bonus</strong>)",
+ 'ADMIN_BONUS_STATS_BONUS' => "Einmalige Bonus bei Erreichen von 100% Klickrate auf eine Mailbuchung (=<span class=\"tiny\">Statistik-Bonus</span>)",
'ADMIN_BONUS_TURBO_BONUS_TITLE' => "Bonus-{?POINTS?} für bestätigte Mails",
'ADMIN_BONUS_TURBO_TIMEOUT_TITLE' => "Zeitabstände und Aufbewahrungszeiten",
'ADMIN_BONUS_TURBO_MISC_TITLE' => "Sonstige Einstellungen zur Bonus-Erweiterung",
// Some security stuff...
if (!defined('__SECURITY')) {
die();
-}
+} // END - if
//
function addValidHtmlTags() {
return preCompileCode(str_replace("\n", "<br />\n", $text));
}
-// Sends a HTML mail to the user
-function sendHtmlEmail($to, $subject, $message, $FROM) {
- if (isExtensionActive('html_mail')) {
- // Send mail away as HTML
- $FROM = "Content-Type: text/html; charset=UTF-8\n" . $FROM;
- sendEmail($to, $subject, $message, 'N', $FROM);
- } // END - if
-}
-
-//
+// [EOF]
?>
case 'select': // Selection
$template = 'admin_send_bonus_select';
break;
- } // END - if
+ } // END - switch
// Load template
loadTemplate($template, false, $content);
} else {
// Copy data into constants for the template and load it
$content['datestamp'] = generateDateTime(time(), 3);
+
+ // Extension html_mail installed?
if (isExtensionActive('html_mail')) {
// Load template with HTML mode
loadTemplate('admin_newsletter', false, $content);
--- /dev/null
+MIME-Version: 1.0
+Content-Type: text/html; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+X-Mailer: {?TITLE?} {?FULL_VERSION?}
+Errors-To: {?WEBMASTER?}
+Bounces-To: {?WEBMASTER?}
+X-Loop: {?WEBMASTER?}
+From: "{?MAIN_TITLE?}" <{?WEBMASTER?}>