'; echo '$email = ' . $email . '
'; echo '$listName = ' . $listName . '
'; echo '$campaignId = ' . $campaignId . '
'; var_dump($list); } $title = "Unsubscribe Failed"; $message = "

Something went wrong

Please contact us at " . TenCentDao::getSetting("tencentmail_support_email") . "

"; wp_die($message, $title); } else { if (!empty($list)) { $listSettings = TenCentDao::getContactListSettings($list->id); $pageContent = $listSettings['unsubscribe_success_message']; $title = "Successfully Unsubscribed"; if (empty($pageContent)) $pageContent = "

Successfully Unsubscribed

"; wp_die($pageContent, $title); } } } catch (Exception $e) { if (WP_DEBUG) { var_dump($e); } $title = "Failed to unsubscribe"; $message = "

Something went wrong

Please contact us at " . TenCentDao::getSetting("tencentmail_support_email") . "

"; wp_die($message, $title); } } else { if (WP_DEBUG) { echo 'values were not valid
'; echo '$email = ' . $email . '
'; echo '$listName = ' . $listName . '
'; echo '$campaignId = ' . $campaignId . '
'; } $title = "Failed to unsubscribe"; $message = "

Something went wrong

Please contact us at " . TenCentDao::getSetting("tencentmail_support_email") . "

"; wp_die($message, $title); } }