email = $email; $config->list = $list; $contactList = TenCentDao::getContactListByList($list); TenCentEmailer::sendDoubleOptEmails($config, $contactList); echo "

" . TenCentDao::getSetting('tencentmail_company_name') . " : Opt In Confirmed

"; echo "

You have successfully confirmed to opt in to receive emails from us to your email at : $email

"; $message = "

You have successfully confirmed to opt in to receive emails from us to your email at : $email

"; $title = TenCentDao::getSetting('tencentmail_company_name') . " : Opt In Confirmed"; wp_die($message, $title); } catch (Exception $e) { if (WP_DEBUG) { var_dump($e); } $error = "

Something went wrong when trying to confirm your opt in to receive emails at: $email

Please contact us at :" . TenCentDao::getSetting('tencentmail_company_contact') . "

"; $title = TenCentDao::getSetting('tencentmail_company_name') . " : Failed to Confirm Opt In"; wp_die($error, $title); } } else { if (WP_DEBUG) { echo 'values did not validate
'; echo '$email = ' . $email . '
'; echo '$list = ' . $list . '
'; } $error = "

Something went wrong when trying to confirm your opt in to receive emails at: $email

Please contact us at :" . TenCentDao::getSetting('tencentmail_company_contact') . "

"; $title = TenCentDao::getSetting('tencentmail_company_name') . " : Failed to Confirm Opt In"; wp_die($error, $title); } }