cc
This commit is contained in:
@@ -349,13 +349,14 @@
|
||||
$stmt->bindParam(':method', $messageMethod);
|
||||
$stmt->execute();
|
||||
$sendSuccessMessage = "Email Sent successfully";
|
||||
echo '<script>window.location.href = "/edit-lead/?id='.$_GET['id'].'"</script>';
|
||||
// echo '<script>window.location.href = "/edit-lead/?id='.$_GET['id'].'"</script>';
|
||||
} catch (PDOException $e) {
|
||||
echo "Error: " . $e->getMessage();
|
||||
}
|
||||
}
|
||||
// Close the file pointer
|
||||
fclose($fp);
|
||||
echo '<script>window.location.href = "/edit-lead/?id='.$_GET['id'].'"</script>';
|
||||
}
|
||||
} elseif (isset($_GET['send-whatsapp-id']) && $_GET['send-whatsapp-id']) {
|
||||
$url = "https://api.interakt.ai/v1/public/message/";
|
||||
@@ -412,7 +413,7 @@
|
||||
$stmt->bindParam(':method', $messageMethod);
|
||||
$stmt->execute();
|
||||
$sendSuccessMessage = "WhatsApp Sent successfully";
|
||||
echo '<script>window.location.href = "/edit-lead/?id='.$_GET['id'].'"</script>';
|
||||
|
||||
} catch(PDOException $e) {
|
||||
echo "Error: " . $e->getMessage();
|
||||
}
|
||||
@@ -420,6 +421,7 @@
|
||||
// echo $response;
|
||||
}
|
||||
fclose($fp);
|
||||
echo '<script>window.location.href = "/edit-lead/?id='.$_GET['id'].'"</script>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user