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