$_GET['id'] ]; if ($_SERVER['HTTP_HOST'] == 'localhost') { $ch = curl_init('http://localhost/crm2.techlounge.co.in/api/unsubscribe-email.php'); } else { $ch = curl_init('https://crm2.techlounge.co.in/api/unsubscribe-email.php'); } curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $post); $response = curl_exec($ch); curl_close($ch); echo 'You unsubscribed this mail successfully.'; } ?>