Adding the feature to specify a new email address as the recipient for resending a logged email entry. statistics.emaillog.php: ------------------------ Find: {if $EMAIL_LOG} Add after:
Find: {$LANG.common.resend} Add after: Send to: Find: Change to: Find: {else} Change to:
{else} ============================================ statistics.emaillog.inc.php --------------------------- Find: if (isset($_GET['resend']) && $_GET['resend']>0) { $email_data = $GLOBALS['db']->select('CubeCart_email_log', false, array('id' => (int)$_GET['resend'])); Change to: if (isset($_POST['multi_emaillog_resend'])) { switch ($_POST['multi_emaillog_resend']) { case "resend": if (isset($_POST['resend']) && is_array($_POST['resend'])) { $email_data = $GLOBALS['db']->select('CubeCart_email_log', false, array('id' => $_POST['resend'])); Find: if ($email_data) { $mailer = new Mailer(); Add after: foreach ($email_data as $email_to_resend) { // each $email_to_resend was $email_data[0] $mailer->clearAddresses(); For the next 30 lines, find all instances of $email_data[0] and change to $email_to_resend. There are 14 instances. For example, from: $mailer->Subject = $email_data[0]['subject']; To: $mailer->Subject = $email_to_resend['subject']; Find: $recipients = explode(',', $email_to_resend['to']); Add ABOVE: if (isset($_POST['resend_to'][$email_to_resend['id']]) && !empty($_POST['resend_to'][$email_to_resend['id']])) { $email_to_resend['to'] = $_POST['resend_to'][$email_to_resend['id']]; } Find: httpredir(currentPage(array('resend'))); } } Change to: httpredir(currentPage()); } } } }