The problem is this line from your admin/email_history.php file:
PHP Code:
zen_mail($email->email_to_name, $email->email_to_address, $email->email_subject, $email->email_text, $email->email_from_name, $email->email_from_address, $email->email_html, 'cc_middle_digs');
Now, on the same file, find:
PHP Code:
if ($action == 'resend') {
// collect the e-mail data
$email_sql = $db->Execute("select * from " . TABLE_EMAIL_ARCHIVE . " where archive_id = " . $_GET['archive_id']);
$email = new objectInfo($email_sql->fields);
// resend the message
// we use 'cc_middle_digs' as the module because that is not archived (don't want to achive the same message twice)
zen_mail($email->email_to_name, $email->email_to_address, $email->email_subject, $email->email_text, $email->email_from_name, $email->email_from_address, $email->email_html, 'cc_middle_digs');
$messageStack->add_session(sprintf(SUCCESS_EMAIL_RESENT, $email->archive_id, $email->email_to_address), 'success');
zen_redirect(zen_href_link(FILENAME_EMAIL_HISTORY));
}
replace with:
PHP Code:
if ($action == 'resend') {
// collect the e-mail data
$archive_id = (isset($_GET['archive_id'])) ? zen_db_prepare_input($_GET['archive_id']) : zen_db_prepare_input($_POST['archive_id']);
$email_sql = $db->Execute("select * from " . TABLE_EMAIL_ARCHIVE . " where archive_id = " . (int)$archive_id);
$email = new objectInfo($email_sql->fields);
// resend the message
// we use 'cc_middle_digs' as the module because that is not archived (don't want to achive the same message twice)
zen_mail($email->email_to_name, $email->email_to_address, $email->email_subject, $email->email_text, $email->email_from_name, $email->email_from_address, $email->email_html, 'cc_middle_digs');
$messageStack->add_session(sprintf(SUCCESS_EMAIL_RESENT, $email->archive_id, $email->email_to_address), 'success');
zen_redirect(zen_href_link(FILENAME_EMAIL_HISTORY));
}
Then, assure that you have your email template file called: email_template_cc_middle_digs.html file under your email folder.
Bookmarks